From: Takashi Iwai Date: Sat, 25 Feb 2012 10:13:16 +0000 (+0100) Subject: ALSA: hda/realtek - Fix resume of multiple input sources X-Git-Tag: MMI-PSA29.97-13-9~16612^2~65 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=068b939431486f524438330b0848a8222e33d421;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Cc: [v3.1+] Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 3647baa9bfed..4fe2d5960a04 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -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 */