Align changes with commit
c8b5541.
Fixes: c8b5541 ("ucm2: HDA: Headphone output may be optional")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
}
# 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