diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-08-10 18:54:38 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-08-10 18:56:05 +0200 |
commit | 2a22d3f81283253ab9dae9244f3ca58a5ac66b36 (patch) | |
tree | 42f2af8b5a32e7060fde7baa38651663277e5177 /sound/pci | |
parent | 6c8194922739138f046a4d0924519dd43b48e1f3 (diff) | |
download | linux-2a22d3f81283253ab9dae9244f3ca58a5ac66b36.tar.bz2 |
ALSA: hda - Use only one capture stream for auto-mic
When the auto-mic feature is enabled, we should support only one
capture stream.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 678c2d7b7f98..7ecf929b97a5 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -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; |