From: lydiawang Date: Tue, 28 Jun 2011 09:29:10 +0000 (+0800) Subject: ALSA: hda - Fix unsol event initializations for VIA codecs X-Git-Tag: next-20110726~34^2~53^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=738e11a7f5f432c0b4029a5690572e2ab1aa43e9;p=karo-tx-linux.git ALSA: hda - Fix unsol event initializations for VIA codecs Fix a issue to enable unsolicited response to line-out pins. Signed-off-by: Lydia Wang Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/hda/patch_via.c b/sound/pci/hda/patch_via.c index fb5468b4c55a..997b7057a549 100644 --- a/sound/pci/hda/patch_via.c +++ b/sound/pci/hda/patch_via.c @@ -2427,7 +2427,7 @@ static void via_auto_init_unsol_event(struct hda_codec *codec) for (i = 0; i < cfg->line_outs; i++) { if (cfg->line_out_pins[i] && is_jack_detectable(codec, cfg->line_out_pins[i])) - snd_hda_codec_write(codec, cfg->line_out_pins[0], 0, + snd_hda_codec_write(codec, cfg->line_out_pins[i], 0, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ev | VIA_JACK_EVENT); }