aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-07-08 08:37:35 -0400
committerTakashi Iwai <tiwai@suse.de>2011-07-08 08:37:35 -0400
commit268ff6fbe70a4ab3c931caa0fdffc3d49265d135 (patch)
tree252b655dc378cacdc7fc269e6699ec790f52f4ae /sound/pci/hda
parent28dc10a5f1bebfbb7cb19f588bc1652a00992402 (diff)
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 <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda')
-rw-r--r--sound/pci/hda/patch_realtek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index e230947cd3f..371d1e418d5 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)
958 break; 958 break;
959 } 959 }
960 if (i >= imux->num_items) 960 if (i >= imux->num_items)
961 return false; /* no ADC-switch is needed */ 961 return true; /* no ADC-switch is needed */
962 } 962 }
963 963
964 for (i = 0; i < imux->num_items; i++) { 964 for (i = 0; i < imux->num_items; i++) {