]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
ucm2: da7213: Fix mic capture in HeadphoneMic2 use case
authorLe Qi <le.qi@oss.qualcomm.com>
Mon, 23 Mar 2026 07:20:24 +0000 (15:20 +0800)
committerJaroslav Kysela <perex@perex.cz>
Fri, 27 Mar 2026 13:57:19 +0000 (14:57 +0100)
Set Mic 2 Volume to index 4 (+18 dB) and Mixin PGA Volume to index
10 (+10.5 dB) for sufficient microphone capture gain.

Remove headphone output controls (Headphone Volume, Headphone Switch,
Mixout DAC switches) as these belong to HeadphoneEnableSeq.conf and
should not be duplicated in the capture sequence.

Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/730
Signed-off-by: Le Qi <le.qi@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/da7213/HeadphoneMic2DisableSeq.conf
ucm2/codecs/da7213/HeadphoneMic2EnableSeq.conf

index a9693af90accf0e60545f95134f6c370cfb198ca..f591045c465d3d63d26f27fee24618250684c6e1 100644 (file)
@@ -4,7 +4,4 @@ DisableSequence [
        cset "name='Mixin Right Mic 2 Switch' off"
        cset "name='Mixin PGA Switch' off"
        cset "name='ADC Switch' off"
-       cset "name='Headphone Switch' off"
-       cset "name='Mixout Left DAC Left Switch' off"
-       cset "name='Mixout Right DAC Right Switch' off"
 ]
index 42bd9e2ba1fd16507612f00493dbbbbdeb4929c8..8f7a6d290afd4e3fd6f0cd66bddac34d422e6e31 100644 (file)
@@ -6,10 +6,8 @@ EnableSequence [
        cset "name='Mixin Right Mic 2 Switch' on"
        cset "name='Mixin PGA Switch' on"
        cset "name='ADC Switch' on"
+       cset "name='Mic 2 Volume' 4"
+       cset "name='Mixin PGA Volume' 10,10"
        cset "name='DAI Left Source MUX' ADC Left"
        cset "name='DAI Right Source MUX' ADC Right"
-       cset "name='Headphone Volume' 85"
-       cset "name='Headphone Switch' on"
-       cset "name='Mixout Left DAC Left Switch' on"
-       cset "name='Mixout Right DAC Right Switch' on"
 ]