Group :: Sistema/Bibliotecas
RPM: alsa-ucm-conf
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: 0010-rt5631-add-headset-support.patch
Download
Download
From 2c02ede2944e78f805356cb9bf0afff2bc925a3e Mon Sep 17 00:00:00 2001
From: Svyatoslav Ryhel <clamor95@gmail.com>
Date: Thu, 4 Aug 2022 10:37:29 +0300
Subject: [PATCH 10/11] rt5631: add headset support
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
---
ucm2/Tegra/rt5631/Asus-Transformer-HiFi.conf | 25 +++++++++++++++++++-
1 file changed, 24 insertions(+), 1 deletion(-)
diff --git a/ucm2/Tegra/rt5631/Asus-Transformer-HiFi.conf b/ucm2/Tegra/rt5631/Asus-Transformer-HiFi.conf
index 1d09129..770626f 100644
--- a/ucm2/Tegra/rt5631/Asus-Transformer-HiFi.conf
+++ b/ucm2/Tegra/rt5631/Asus-Transformer-HiFi.conf
@@ -117,6 +117,7 @@ SectionDevice."InternalMic" {
Comment "Internal Microphone"
ConflictingDevice [
+ "HeadsetMic"
]
EnableSequence [
@@ -133,6 +134,28 @@ SectionDevice."InternalMic" {
Value {
CapturePCM "hw:${CardId}"
- CaptureChannels 2
+ CaptureMixerElem "Digital"
+ }
+}
+
+SectionDevice."HeadsetMic" {
+ Comment "Headset Microphone"
+
+ ConflictingDevice [
+ "InternalMic"
+ ]
+
+ EnableSequence [
+ cset "name='Headset Mic Switch' on"
+ ]
+
+ DisableSequence [
+ cset "name='Headset Mic Switch' off"
+ ]
+
+ Value {
+ CapturePCM "hw:${CardId}"
+ CaptureMixerElem "Digital"
+ JackControl "Mic Jack"
}
}
--
2.33.4