]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-hda-dsp: Use common HDA initialization from /HDA/init.conf
authorJaroslav Kysela <perex@perex.cz>
Mon, 24 Mar 2025 16:27:48 +0000 (17:27 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 24 Mar 2025 16:28:06 +0000 (17:28 +0100)
No functional changes.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Intel/sof-hda-dsp/sof-hda-dsp.conf

index 571c207d833806b6a281d35cec9dc0687d3da3eb..892894ba739061f49b560451c82a78976a6ba005 100644 (file)
@@ -44,38 +44,7 @@ SectionUseCase."HiFi" {
        Comment "Play HiFi quality Music"
 }
 
-# the kcontrols initial values, which will be set by `alsactl init`
-
-If.amute {
-       Condition {
-               Type ControlExists
-               Control "name='Auto-Mute Mode'"
-       }
-       True.BootSequence [
-               cset "name='Auto-Mute Mode' off"
-       ]
-}
-
-If.master {
-       Condition {
-               Type ControlExists
-               Control "name='Master Playback Volume'"
-       }
-       True.BootSequence [
-               cset "name='Master Playback Volume' 60%"
-               cset "name='Master Playback Switch' on"
-       ]
-}
-
-If.speaker {
-       Condition {
-               Type ControlExists
-               Control "name='Speaker Playback Volume'"
-       }
-       True.BootSequence [
-               cset "name='Speaker Playback Volume' 60%"
-       ]
-}
+Include.hda-init.File "/HDA/init.conf"
 
 If.DellMuteLed {
        Condition {
@@ -86,16 +55,6 @@ If.DellMuteLed {
        True.Macro [{ SetLED { LED="speaker" Action="detach" CtlId="Master Playback Switch" } }]
 }
 
-If.headphone {
-       Condition {
-               Type ControlExists
-               Control "name='Headphone Playback Volume'"
-       }
-       True.BootSequence [
-               cset "name='Headphone Playback Volume' 60%"
-       ]
-}
-
 If.dmic {
        Condition {
                Type String
@@ -118,17 +77,6 @@ If.dmic {
        }
 }
 
-If.Capture {
-       Condition {
-               Type ControlExists
-               Control "name='Capture Switch'"
-       }
-       True.BootSequence [
-               cset "name='Capture Volume' 60%"
-               cset "name='Capture Switch' on"
-       ]
-}
-
 Include.hdmi-pcm.File "/common/pcm/hdmi.conf"
 
 Macro.0.HdmiDevice { Iec61937Devices "${var:Iec61937Pcms1}" Dev 3 Idx 0 }