diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-06-21 10:43:15 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-06-21 11:39:45 +0200 |
commit | 9dd8cf125d27742a25219bfdf82026e7efed27d9 (patch) | |
tree | c4a36162d81cebfcb27ef58aa64dfc4c07ad94e0 /sound/pci/hda/patch_hdmi.c | |
parent | ALSA: hda - Remove loop from simple_hdmi*() (diff) | |
download | linux-9dd8cf125d27742a25219bfdf82026e7efed27d9.tar.xz linux-9dd8cf125d27742a25219bfdf82026e7efed27d9.zip |
ALSA: hda - Don't rely on event tag for simple_hdmi
VIA codecs seem not returning the event tag in the unsolicited events,
thus the current code relying on the tag value doesn't work.
Since simple_hdmi stuff has only a single pin, we can use simply
snd_hda_jack_set_dirty_all() to activate the pin-detection
independently from the tag value.
Tested-by: Annie Liu <AnnieLiu@viatech.com.cn>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_hdmi.c')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index 0a87a1f2988e..75ad1a10646b 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -1388,7 +1388,7 @@ static int simple_playback_build_pcms(struct hda_codec *codec) static void simple_hdmi_unsol_event(struct hda_codec *codec, unsigned int res) { - snd_hda_jack_get_action(codec, res >> AC_UNSOL_RES_TAG_SHIFT); + snd_hda_jack_set_dirty_all(codec); snd_hda_jack_report_sync(codec); } |