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:
parent
c8b55418ff
commit
e9720b098f
1 changed files with 7 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue