Skip to content

Commit

Permalink
ALSA: hda - Fix auto-mic detection in Realtek codec-parser
Browse files Browse the repository at this point in the history
A regression fix from commit 2126896
  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>
  • Loading branch information
Takashi Iwai committed Jul 8, 2011
1 parent 28dc10a commit 268ff6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 268ff6f

Please sign in to comment.