Skip to content

Commit

Permalink
ALSA: hda - Don't rely on event tag for simple_hdmi
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Takashi Iwai committed Jun 21, 2012
1 parent 8ceb332 commit 9dd8cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/hda/patch_hdmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9dd8cf1

Please sign in to comment.