]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf1f3e7327647df40e08e7086bd9ce7bb694ad64
tree4ce41c4f29ca703a82d8ce7a97e6a990c57091fb
parenta2d37ad5bf4eaca0e2cca25b11a09e967d1a614d
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