ALSA: hda/realtek - Fix resume of multiple input sources

When there are multiple input sources, the driver wrongly overwrites with
the value of the last input source on other slots at resume.  Thus the
primary input source may be shown wrongly.

Reported-and-tested-by: Julian Sikorski <belegdol@gmail.com>
Cc: <stable@kernel.org> [v3.1+]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2012-02-25 11:13:16 +01:00
parent cb74eb15ac
commit 068b939431

View File

@ -3797,7 +3797,7 @@ static void alc_auto_init_input_src(struct hda_codec *codec)
else
nums = spec->num_adc_nids;
for (c = 0; c < nums; c++)
alc_mux_select(codec, 0, spec->cur_mux[c], true);
alc_mux_select(codec, c, spec->cur_mux[c], true);
}
/* add mic boosts if needed */