Some SKUs don't have the internal mic, so the patch adds the condition to check
whether the SKU has the internal mic or not.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/657
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
cset "name='rt722 FU0F Capture Volume' 63"
]
-Macro [{ SetLED { LED="mic" Action="attach" CtlId="rt722 FU1E Capture Switch" } }]
+If.mic_init_rt722 {
+ Condition {
+ Type String
+ Needle "rt722"
+ Haystack "${var:MicCodec1}"
+ }
+ True.Macro [{ SetLED { LED="mic" Action="attach" CtlId="rt722 FU1E Capture Switch" } }]
+}