From c61b5bda9d935cee5a38775ea6ffd524efc78dd2 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Fri, 8 Jul 2011 14:37:35 +0200 Subject: [PATCH] ALSA: hda - Fix auto-mic detection in Realtek codec-parser A regression fix from commit 005427b4fdade3e65e56f78c8d7339770edf0a44 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 --- sound/pci/hda/patch_realtek.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index e230947cd3fea..371d1e418d537 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++) { -- 2.39.5