ALSA: hda/hdmi: expose ELD control
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 30 Sep 2011 21:35:41 +0000 (16:35 -0500)
committerTakashi Iwai <tiwai@suse.de>
Mon, 3 Oct 2011 13:48:12 +0000 (15:48 +0200)
commit14bc52b8feaae6cbc88934399f418125ac176399
treee43a68246b931ab6001f9977886918145448b19d
parentef940b0403d4ae133c548b01fe64c74fa8a2f0b1
ALSA: hda/hdmi: expose ELD control

Applications may want to read ELD information to
understand what codecs are supported on the HDMI
receiver and handle the a-v delay for better lip-sync.

ELD information is exposed in a device-specific
IFACE_PCM kcontrol. Tested both with amixer and
PulseAudio; with a corresponding patch passthrough modes
are enabled automagically.

ELD control size is set to zero in case of errors or
wrong configurations. No notifications are implemented
for now, it is expected that jack detection is used to
reconfigure the audio outputs.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_eld.c
sound/pci/hda/hda_local.h
sound/pci/hda/patch_hdmi.c