mirror of
https://github.com/adulau/aha.git
synced 2024-12-29 12:16:20 +00:00
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>
This commit is contained in:
parent
6c81949227
commit
2a22d3f812
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue