]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-soundwire: cs42l43: Correct CapturePCM and routing
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Wed, 20 Nov 2024 10:06:06 +0000 (10:06 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 20 Nov 2024 13:32:15 +0000 (14:32 +0100)
For headset microphone capture the correct PCM device to use is
"hw:${CardId},1", "hw:${CardId},4" is for built in microphone capture.

Adjust the routing as well since :0,1 is connected to data port 2 on the
codec.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/466
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/sof-soundwire/cs42l43.conf

index dc11840f2ad95da9579112a8fd7ae2b930840332..4b4e1187f3852efd40cfd98871ddfb4bd6191cfb 100644 (file)
@@ -28,19 +28,19 @@ SectionDevice."Headset" {
                cset "name='cs42l43 ADC1 Input' 'IN1'"
                cset "name='cs42l43 Decimator 1 Mode' 'ADC'"
 
-               cset "name='cs42l43 DP1TX1 Input' 'Decimator 1'"
-               cset "name='cs42l43 DP1TX2 Input' 'Decimator 1'"
+               cset "name='cs42l43 DP2TX1 Input' 'Decimator 1'"
+               cset "name='cs42l43 DP2TX2 Input' 'Decimator 1'"
        ]
 
        DisableSequence [
                cset "name='cs42l43 Decimator 1 Switch' 0"
-               cset "name='cs42l43 DP1TX1 Input' 'None'"
-               cset "name='cs42l43 DP1TX2 Input' 'None'"
+               cset "name='cs42l43 DP2TX1 Input' 'None'"
+               cset "name='cs42l43 DP2TX2 Input' 'None'"
        ]
 
        Value {
                CapturePriority 200
-               CapturePCM "hw:${CardId},4"
+               CapturePCM "hw:${CardId},1"
                CaptureMixer "default:${CardId}"
                CaptureMixerElem "cs42l43 Headset Microphone"
                JackControl "Headset Mic Jack"