ucm2: HDA: Create microphone devices optionally

Check if 'Capture Switch' is present before HiFi-mic.conf file
is included.

Link: https://github.com/alsa-project/alsa-ucm-conf/issues/673
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2026-01-04 19:44:43 +01:00
commit e9720b098f

View file

@ -142,7 +142,13 @@ If.spk {
}
}
Include.hifi-mic.File "/HDA/HiFi-mic.conf"
If.cap-sw {
Condition {
Type ControlExists
Control "name='Capture Switch'"
}
True.Include.hifi-mic.File "/HDA/HiFi-mic.conf"
}
If.line {
Condition {