ALSA: hda - Fix superfluous HDMI jack repoll
authorTakashi Iwai <tiwai@suse.de>
Thu, 10 Dec 2015 13:35:09 +0000 (14:35 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Dec 2015 13:35:09 +0000 (14:35 +0100)
commit9a5e5234bafeaa2e9d15881d443c38d3d82d0b38
treeec6d562e058b19b075a033aa685e6af7b51ab83c
parent55913110dde2d9c1cf751481525848644f9041da
ALSA: hda - Fix superfluous HDMI jack repoll

The recent commit [e90247f9fcee: ALSA: hda - Split ELD update code
from hdmi_present_sense()] rewrote the HDMI jack handling code, but a
slight behavior change sneaked in unexpectedly.  When the jack isn't
connected, it tries repoll unnecessarily.

This patch addresses the flaw, to the right behavior as before.

Fixes: e90247f9fcee ('ALSA: hda - Split ELD update code from hdmi_present_sense()')
Reported-and-tested-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c