mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 16:22:41 -04:00
ALSA: hda - Fix auto-mic detection in Realtek codec-parser
A regression fix from commit 21268961d3
ALSA: hda - More flexible dynamic-ADC switching for Realtek codecs
The auto-mic wasn't detected properly when no ADC-switch is needed.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -958,7 +958,7 @@ static bool alc_check_dyn_adc_switch(struct hda_codec *codec)
|
||||
break;
|
||||
}
|
||||
if (i >= imux->num_items)
|
||||
return false; /* no ADC-switch is needed */
|
||||
return true; /* no ADC-switch is needed */
|
||||
}
|
||||
|
||||
for (i = 0; i < imux->num_items; i++) {
|
||||
|
||||
Reference in New Issue
Block a user