Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/825
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
SectionDevice."Headphones" {
Comment "Headphones"
- EnableSequence [
- cset "name='Headphone Switch' on"
- ]
-
- DisableSequence [
- cset "name='Headphone Switch' off"
- ]
+ If.hs {
+ Condition {
+ Type ControlExists
+ Control "name='Headphone Switch'"
+ }
+ True {
+ EnableSequence [
+ cset "name='Headphone Switch' on"
+ ]
+ DisableSequence [
+ cset "name='Headphone Switch' off"
+ ]
+ }
+ }
Value {
PlaybackPriority 200