]> git.alsa-project.org Git - alsa-ucm-conf.git/commitdiff
sof-hda-dsp: Headphone output is optional
authorJaroslav Kysela <perex@perex.cz>
Mon, 12 Jan 2026 09:46:06 +0000 (10:46 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 12 Jan 2026 09:46:43 +0000 (10:46 +0100)
Align changes with commit c8b5541.

Fixes: c8b5541 ("ucm2: HDA: Headphone output may be optional")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/Intel/sof-hda-dsp/HiFi-sof.conf

index 738da914d3dd25526315458dbd5d4a700cb71cd3..d71c444078ba2182ff3b858a29d14de7a20805b5 100644 (file)
@@ -44,8 +44,14 @@ DefineMacro.SofAnalogPlaybackControl {
 }
 
 # Merge this to Headpones subtree in HDA/HiFi-analog.conf
-SectionDevice."Headphones" {
-       Macro.headphone.SofAnalogPlaybackControl "endpoint=Headphone drcswitch=off"
+If.hp {
+       Condition {
+               Type ControlExists
+               Control "name='Headphone Playback Switch'"
+       }
+       True.SectionDevice."Headphones" {
+               Macro.headphone.SofAnalogPlaybackControl "endpoint=Headphone drcswitch=off"
+       }
 }
 
 # Merge this to Speaker subtree in HDA/HiFi-analog.conf