ALSA: hda - hdmi: Do not expose eld data when eld is invalid
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 19 Feb 2013 15:11:23 +0000 (16:11 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 19 Feb 2013 17:28:13 +0000 (18:28 +0100)
commit68e03de98507065bb5fd1958388974c9bc2cd480
treed6ed5311465005647b4d2ab2bce0d396e422032d
parentbbfd8a19b6913f50a362457c34d49bfafe5e456e
ALSA: hda - hdmi: Do not expose eld data when eld is invalid

Previously, it was possible to read the eld data of the previous
monitor connected. This should not be allowed.

Also refactor the function slightly.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_hdmi.c