From: Takashi Iwai Date: Fri, 8 Jul 2011 12:37:35 +0000 (+0200) Subject: ALSA: hda - Fix auto-mic detection in Realtek codec-parser X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=268ff6fbe70a4ab3c931caa0fdffc3d49265d135;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ALSA: hda - Fix auto-mic detection in Realtek codec-parser A regression fix from commit 21268961d3d1bbdd22a19b68adb80119e8c72dcd 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 --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e230947cd3fe..371d1e418d53 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -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++) {