Skip to content

Commit 59bb3c8

Browse files
committed
ucm2: HDA: Create microphone devices optionally
Check if 'Capture Switch' is present before HiFi-mic.conf file is included. Link: alsa-project#673 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent 1b2df18 commit 59bb3c8

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

ucm2/HDA/HiFi-analog.conf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,13 @@ If.spk {
142142
}
143143
}
144144

145-
Include.hifi-mic.File "/HDA/HiFi-mic.conf"
145+
If.cap-sw {
146+
Condition {
147+
Type ControlExists
148+
Control "name='Capture Switch'"
149+
}
150+
True.Include.hifi-mic.File "/HDA/HiFi-mic.conf"
151+
}
146152

147153
If.line {
148154
Condition {

0 commit comments

Comments
 (0)