提交 068b9394 编写于 作者: T Takashi Iwai

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: NJulian Sikorski <belegdol@gmail.com>
Cc: <stable@kernel.org> [v3.1+]
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 cb74eb15
...@@ -3797,7 +3797,7 @@ static void alc_auto_init_input_src(struct hda_codec *codec) ...@@ -3797,7 +3797,7 @@ static void alc_auto_init_input_src(struct hda_codec *codec)
else else
nums = spec->num_adc_nids; nums = spec->num_adc_nids;
for (c = 0; c < nums; c++) 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 */ /* add mic boosts if needed */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册