UPSTREAM: ASoC: hdmi-codec: Add ELD control
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 20 Apr 2016 08:59:58 +0000 (10:59 +0200)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 23 Jun 2016 03:11:38 +0000 (11:11 +0800)
commitc09637550f459a0d78f2c4c743adda74a801c7a8
tree98e3591b8b3b6e33e192cc3ad1e4e4ae91fddc56
parent0f0acce3cc5159c9b1479d45b7b59f24bf60a4da
UPSTREAM: ASoC: hdmi-codec: Add ELD control

ALSA doesn't know about all the different compressed audio formats,
so there is no interface to let userspace enumerate the formats that
are supported by the connected sink. Exporting the raw ELD bytes to
userspace allows an application to select the appropriate audio format
depending on the current capabilities of the connected HDMI sink device.
Usually userspace then just pretends to ALSA that the data is in one of
the raw 16-bit PCM audio formats and relies on the IEC controls to tell
the sink how to interpret the data.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Jyri Sarha <jsarha@ti.com>
Tested-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
(cherry picked from commit 81151cfb6bfe69f1c5a52b795eb005226a322c9e)

Change-Id: I37a90865af97be1c1e21b5e677aa7d8ce58bdf23
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
sound/soc/codecs/hdmi-codec.c