[alsa-devel] [PATCH 2/5] conf/ucm: chtrt5645: Microphone recording fixes
Hans de Goede
hdegoede at redhat.com
Sat Apr 28 21:51:57 CEST 2018
From: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
Apply microphone recording changes from:
https://github.com/plbossart/UCM.git
Cc: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart at linux.intel.com>
[hdegoede at redhat.com: Drop non generic DMIC changes]
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
src/conf/ucm/chtrt5645/HiFi.conf | 50 ++++++++++++++++++++++++++------
1 file changed, 41 insertions(+), 9 deletions(-)
diff --git a/src/conf/ucm/chtrt5645/HiFi.conf b/src/conf/ucm/chtrt5645/HiFi.conf
index f63392d4..b97a9c00 100644
--- a/src/conf/ucm/chtrt5645/HiFi.conf
+++ b/src/conf/ucm/chtrt5645/HiFi.conf
@@ -4,8 +4,8 @@ SectionVerb {
TQ "HiFi"
# ALSA PCM device for HiFi
- PlaybackPCM "hw:chtrt5645,0"
- CapturePCM "hw:chtrt5645,0"
+ PlaybackPCM "hw:chtrt5645"
+ CapturePCM "hw:chtrt5645"
}
EnableSequence [
@@ -255,7 +255,7 @@ SectionDevice."Headphones" {
}
SectionDevice."Mic".0 {
- Comment "Internal Microphone"
+ Comment "Internal Analog Microphones"
Value {
CaptureChannels "2"
@@ -266,15 +266,33 @@ SectionDevice."Mic".0 {
cdev "hw:chtrt5645"
cset "name='Int Mic Switch' on"
- cset "name='Sto1 ADC MIXL ADC2 Switch' on"
- cset "name='Sto1 ADC MIXR ADC2 Switch' on"
+
+ cset "name='Sto1 ADC MIXL ADC1 Switch' on"
+ cset "name='Sto1 ADC MIXR ADC1 Switch' on"
+ cset "name='Sto1 ADC MIXL ADC2 Switch' off"
+ cset "name='Sto1 ADC MIXR ADC2 Switch' off"
+
+ cset "name='Mono ADC MIXL ADC1 Switch' on"
+ cset "name='Mono ADC MIXR ADC1 Switch' on"
+ cset "name='Mono ADC MIXL ADC2 Switch' off"
+ cset "name='Mono ADC MIXR ADC2 Switch' off"
+
+ cset "name='RECMIXL BST1 Switch' on"
+ cset "name='RECMIXR BST1 Switch' on"
+
]
DisableSequence [
cdev "hw:chtrt5645"
- cset "name='Sto1 ADC MIXL ADC2 Switch' off"
- cset "name='Sto1 ADC MIXR ADC2 Switch' off"
+ cset "name='Sto1 ADC MIXL ADC1 Switch' off"
+ cset "name='Sto1 ADC MIXR ADC1 Switch' off"
+ cset "name='Mono ADC MIXL ADC1 Switch' off"
+ cset "name='Mono ADC MIXR ADC1 Switch' off"
+
+ cset "name='RECMIXL BST1 Switch' off"
+ cset "name='RECMIXR BST1 Switch' off"
+
cset "name='Int Mic Switch' off"
]
}
@@ -292,19 +310,33 @@ SectionDevice."HSMic".0 {
cdev "hw:chtrt5645"
cset "name='Headset Mic Switch' on"
- cset "name='RECMIXL BST1 Switch' on"
- cset "name='RECMIXR BST1 Switch' on"
+
cset "name='Sto1 ADC MIXL ADC1 Switch' on"
cset "name='Sto1 ADC MIXR ADC1 Switch' on"
+ cset "name='Sto1 ADC MIXL ADC2 Switch' off"
+ cset "name='Sto1 ADC MIXR ADC2 Switch' off"
+
+ cset "name='Mono ADC MIXL ADC1 Switch' on"
+ cset "name='Mono ADC MIXR ADC1 Switch' on"
+ cset "name='Mono ADC MIXL ADC2 Switch' off"
+ cset "name='Mono ADC MIXR ADC2 Switch' off"
+
+ cset "name='RECMIXL BST1 Switch' on"
+ cset "name='RECMIXR BST1 Switch' on"
+
]
DisableSequence [
cdev "hw:chtrt5645"
cset "name='Headset Mic Switch' off"
+
cset "name='RECMIXL BST1 Switch' off"
cset "name='RECMIXR BST1 Switch' off"
cset "name='Sto1 ADC MIXL ADC1 Switch' off"
cset "name='Sto1 ADC MIXR ADC1 Switch' off"
+ cset "name='Mono ADC MIXL ADC1 Switch' on"
+ cset "name='Mono ADC MIXR ADC1 Switch' on"
+
]
}
--
2.17.0
More information about the Alsa-devel
mailing list