summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/spdif_transmitter.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2016-08-08 08:57:52 +0000
committerMark Brown <broonie@kernel.org>2016-08-08 11:57:57 +0100
commitb9c990da5f258af36acc508f460356e47cd3cb14 (patch)
treef56662e92a317b5df446445dfbdfc8f97de31b6a /sound/soc/codecs/spdif_transmitter.c
parent21c822343fc001b16c6865af8925c83268801644 (diff)
downloadop-kernel-dev-b9c990da5f258af36acc508f460356e47cd3cb14.zip
op-kernel-dev-b9c990da5f258af36acc508f460356e47cd3cb14.tar.gz
ASoC: codec duplicated callback function goes to component on spdif_transmitter
codec driver and component driver has duplicated callback functions, and codec side functions are just copied to component side when register timing. This was quick-hack, but no longer needed. This patch moves these functions from codec driver to component driver. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/spdif_transmitter.c')
-rw-r--r--sound/soc/codecs/spdif_transmitter.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sound/soc/codecs/spdif_transmitter.c b/sound/soc/codecs/spdif_transmitter.c
index ef634a9..ee36753 100644
--- a/sound/soc/codecs/spdif_transmitter.c
+++ b/sound/soc/codecs/spdif_transmitter.c
@@ -38,10 +38,12 @@ static const struct snd_soc_dapm_route dit_routes[] = {
};
static struct snd_soc_codec_driver soc_codec_spdif_dit = {
- .dapm_widgets = dit_widgets,
- .num_dapm_widgets = ARRAY_SIZE(dit_widgets),
- .dapm_routes = dit_routes,
- .num_dapm_routes = ARRAY_SIZE(dit_routes),
+ .component_driver = {
+ .dapm_widgets = dit_widgets,
+ .num_dapm_widgets = ARRAY_SIZE(dit_widgets),
+ .dapm_routes = dit_routes,
+ .num_dapm_routes = ARRAY_SIZE(dit_routes),
+ },
};
static struct snd_soc_dai_driver dit_stub_dai = {
OpenPOWER on IntegriCloud