Commit 9dd8cf12 authored by Takashi Iwai's avatar Takashi Iwai

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: default avatarAnnie Liu <AnnieLiu@viatech.com.cn>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 8ceb332d
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment