In some cases cs42l43/cs42l43b devices can be set up without UAJ. In
this case, guard the ConflictingDevices behind a check for a cs42l43's
headset's presence so the UCM can still load even if the headset is
missing.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/738
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
SectionDevice."Mic" {
Comment "Microphones"
- ConflictingDevice [
- "Headset"
- ]
+ If.hs_present {
+ Condition {
+ Type String
+ Haystack "${var:HeadsetCodec1}"
+ Needle "cs42l43"
+ }
+ True.ConflictingDevice [
+ "Headset"
+ ]
+ }
DisableSequence [
cset "name='cs42l43 DP1TX1 Input' 'None'"
SectionDevice."Speaker" {
Comment "Speaker"
- ConflictingDevice [
- "Headphones"
- ]
+ If.hs_present {
+ Condition {
+ Type String
+ Haystack "${var:HeadsetCodec1}"
+ Needle "cs42l43"
+ }
+ True.ConflictingDevice [
+ "Headphones"
+ ]
+ }
EnableSequence [
cset "name='cs42l43 Speaker L Input 1' 'DP6RX1'"