]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ALSA: hda - hdmi: Fix missing ELD change event on plug/unplug
authorAnssi Hannula <anssi.hannula@iki.fi>
Sun, 19 Oct 2014 16:25:19 +0000 (19:25 +0300)
committerJiri Slaby <jslaby@suse.cz>
Fri, 31 Oct 2014 14:11:28 +0000 (15:11 +0100)
commit7158dc66f236fad1db58bb95f34ee748a758d572
tree0a67beaaedb55dcb053e0a05499ef82991a4c081
parentb36df611fcba2872673c859f2e6e85e5f71d461c
ALSA: hda - hdmi: Fix missing ELD change event on plug/unplug

commit 6acce400d9daf1353fbf497302670c90a3205e1d upstream.

The ELD ALSA control change event is sent by hdmi_present_sense() when
eld_changed is true.

Currently, it is only true when the ELD buffer contents have been
modified. However, the user-visible ELD controls also change to a
zero-length value and back when eld_valid is unset/set, and no event is
currently sent in such cases (such as when unplugging or replugging a
sink).

Fix the code to always set eld_changed if eld_valid value is changed,
and therefore to always send the change event when the user-visible
value changes.

Signed-off-by: Anssi Hannula <anssi.hannula@iki.fi>
Cc: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
sound/pci/hda/patch_hdmi.c