Files
linux/sound/soc/codecs
Kuninori Morimoto efc9194bcf ASoC: hdmi-codec: callback function will be called with private data
Current hdmi-codec driver is assuming that it will be registered
from HDMI driver. Because of this assumption, each callback function
has struct device pointer which is parent device (= HDMI).
Then, it can use dev_get_drvdata() to get private data.

OTOH, on some SoC/HDMI case, SoC has VIDEO/SOUND and HDMI IPs.
This case, it needs SoC VIDEO, SoC SOUND and HDMI video, HDMI codec
driver. In DesignWare HDMI IP case, SoC VIDEO (= DRM/KMS) driver tries
to bind DesignWare HDMI video driver, and HDMI codec driver
(= hdmi-codec). This case, above "parent device" of HDMI codec driver
is DRM/KMS driver and its "device" already has private data.

And, from DT and ASoC CPU/Codec/Card binding point of view, HDMI codec
(= hdmi-codec) needs to have "parent device" (= DRM/KMS), otherwise,
it never detect sound card.

Because of these reasons, some driver can't use dev_get_drvdata() to
get private data on hdmi-codec driver. This patch add new void pointer
on hdmi_codec_pdata for private data, and callback function will be
called with it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-06-27 18:53:15 +01:00
..
2015-05-12 18:58:17 +01:00
2015-10-05 17:42:49 +01:00
2015-07-07 13:35:13 +01:00
2016-05-10 18:56:01 +01:00
2015-08-28 17:17:29 +01:00
2016-02-18 14:17:48 +00:00
2016-04-28 18:16:04 +01:00
2015-03-11 19:16:07 +00:00
2016-01-27 20:23:20 +00:00
2015-11-16 13:17:01 +00:00
2016-02-03 17:07:32 +00:00
2016-02-03 17:07:32 +00:00
2015-12-19 12:02:18 +00:00
2015-12-30 16:35:07 +00:00
2015-12-23 12:21:14 +00:00
2016-01-13 12:40:56 +00:00
2015-07-13 11:51:35 +01:00
2015-07-29 15:05:08 +01:00
2015-04-08 19:25:40 +01:00
2016-02-24 12:43:06 +09:00