Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2a22d3f8 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

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: default avatarTakashi Iwai <tiwai@suse.de>
parent 6c819492
Loading
Loading
Loading
Loading
+4 −2
Original line number Original line Diff line number Diff line
@@ -4683,8 +4683,10 @@ static void set_capture_mixer(struct alc_spec *spec)
	};
	};
	if (spec->num_adc_nids > 0 && spec->num_adc_nids <= 3) {
	if (spec->num_adc_nids > 0 && spec->num_adc_nids <= 3) {
		int mux;
		int mux;
		if (spec->input_mux && spec->input_mux->num_items > 1 &&
		if (spec->auto_mic) {
		    !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;
			mux = 1;
		else
		else
			mux = 0;
			mux = 0;