ALSA: x86: Create ELD control element
authorTakashi Iwai <tiwai@suse.de>
Thu, 2 Feb 2017 15:38:39 +0000 (16:38 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2017 16:37:23 +0000 (17:37 +0100)
commit4aedb9465f717a8393bb5f40581eb7942af12506
tree4ce41c4f29ca703a82d8ce7a97e6a990c57091fb
parent03c3437755881a9f6f1b5f8c05e62edf7898a87f
ALSA: x86: Create ELD control element

Like other drivers, expose the ELD bytes via a control element so that
user-space can parse it.

For the simplicity, the code to register the ctl elements is
refactored using an array.  Also, since ELD ctl read copies the bytes
also during disconnection, clear the ELD bytes at hot-unplug, in order
to avoid the leak of the previous bogus ELD.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/x86/intel_hdmi_audio.c