]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ALSA: hda - Don't rely on event tag for simple_hdmi
authorTakashi Iwai <tiwai@suse.de>
Thu, 21 Jun 2012 08:43:15 +0000 (10:43 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 21 Jun 2012 09:39:45 +0000 (11:39 +0200)
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>
sound/pci/hda/patch_hdmi.c

index 0a87a1f2988e9145a5bf9d3105a137f0669f61d1..75ad1a10646b88a2f9b26dd94a6c98a3029a09a9 100644 (file)
@@ -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);
 }