diff options
author | Lydia Wang <lydiawang@viatech.com.cn> | 2011-06-28 05:29:10 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-06-29 02:01:23 -0400 |
commit | 63f10d2ca78c17cdd612c1daee7daffacca8b7fb (patch) | |
tree | 01888feb97e159170392d65b6f0e4491541b3e1e /sound | |
parent | ff2b7e2a3fdb341a235e0b2eccc3c8914d26c1fb (diff) |
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 <lydiawang@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_via.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
2427 | for (i = 0; i < cfg->line_outs; i++) { | 2427 | for (i = 0; i < cfg->line_outs; i++) { |
2428 | if (cfg->line_out_pins[i] && | 2428 | if (cfg->line_out_pins[i] && |
2429 | is_jack_detectable(codec, cfg->line_out_pins[i])) | 2429 | is_jack_detectable(codec, cfg->line_out_pins[i])) |
2430 | snd_hda_codec_write(codec, cfg->line_out_pins[0], 0, | 2430 | snd_hda_codec_write(codec, cfg->line_out_pins[i], 0, |
2431 | AC_VERB_SET_UNSOLICITED_ENABLE, | 2431 | AC_VERB_SET_UNSOLICITED_ENABLE, |
2432 | AC_USRSP_EN | ev | VIA_JACK_EVENT); | 2432 | AC_USRSP_EN | ev | VIA_JACK_EVENT); |
2433 | } | 2433 | } |