Skip to content

Commit

Permalink
ALSA: hda - Use only one capture stream for auto-mic
Browse files Browse the repository at this point in the history
When the auto-mic feature is enabled, we should support only one
capture stream.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Aug 10, 2009
1 parent 6c81949 commit 2a22d3f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -4683,8 +4683,10 @@ static void set_capture_mixer(struct alc_spec *spec)
};
if (spec->num_adc_nids > 0 && spec->num_adc_nids <= 3) {
int mux;
if (spec->input_mux && spec->input_mux->num_items > 1 &&
!spec->auto_mic)
if (spec->auto_mic) {
mux = 0;
spec->num_adc_nids = 1; /* support only one ADC */
} else if (spec->input_mux && spec->input_mux->num_items > 1)
mux = 1;
else
mux = 0;
Expand Down

0 comments on commit 2a22d3f

Please sign in to comment.