projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c81949
)
ALSA: hda - Use only one capture stream for auto-mic
author
Takashi Iwai
<tiwai@suse.de>
Mon, 10 Aug 2009 16:54:38 +0000
(18:54 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 10 Aug 2009 16:56:05 +0000
(18:56 +0200)
When the auto-mic feature is enabled, we should support only one
capture stream.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_realtek.c
b/sound/pci/hda/patch_realtek.c
index 678c2d7b7f989388f3d817c08525a0d738d7e19c..7ecf929b97a5cf9e165386e77d0276aba51953a0 100644
(file)
--- 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;