Lenovo P520 uses the same line out switch like other dual codecs
systems, however it uses another jack control. So consolidate the switch and
separate the jacks to make its jack control work again.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/149
From: Kai-Heng Feng <kai.heng.feng@canonical.com>
Fixes: 7dda1e2 ("HDA: improve support for HDAudio-Gigabyte-ALC1220DualCodecs")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Type ControlExists
Control "name='Front Playback Switch'"
}
- True {
- Value {
- PlaybackMixerElem "Front"
- JackControl "Line Out Front Jack"
- }
- }
- False {
- Value {
- JackControl "Line Out Jack"
- JackHWMute "Speaker"
- }
+ True.Value.PlaybackMixerElem "Front"
+ }
+ If.1 {
+ Condition {
+ Type ControlExists
+ Control "iface=CARD,name='Line Out Front Jack'"
}
+ True.Value.JackControl "Line Out Front Jack"
+ False.Value.JackControl "Line Out Jack"
}
}
}
True.Value.JackHWMute "Speaker"
}
-
}
SectionDevice."Line2" {