Skip to content

Commit

Permalink
ALSA: hda - Fix auto-mic for CX2064x codecs
Browse files Browse the repository at this point in the history
The wrong id is assigned for external/internal mics in the auto-mic
selection parser.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed May 13, 2011
1 parent 447ee6a commit 2557f74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sound/pci/hda/patch_conexant.c
Original file line number Diff line number Diff line change
Expand Up @@ -3420,13 +3420,13 @@ static void cx_auto_check_auto_mic(struct hda_codec *codec)
if (is_ext_mic(codec, cfg->inputs[0].pin) &&
is_int_mic(codec, cfg->inputs[1].pin)) {
spec->auto_mic = 1;
spec->auto_mic_ext = 1;
spec->auto_mic_ext = 0;
return;
}
if (is_int_mic(codec, cfg->inputs[1].pin) &&
is_ext_mic(codec, cfg->inputs[0].pin)) {
if (is_int_mic(codec, cfg->inputs[0].pin) &&
is_ext_mic(codec, cfg->inputs[1].pin)) {
spec->auto_mic = 1;
spec->auto_mic_ext = 0;
spec->auto_mic_ext = 1;
return;
}
}
Expand Down

0 comments on commit 2557f74

Please sign in to comment.