ASoC: codec duplicated callback function goes to component on spdif_transmitter
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 8 Aug 2016 08:57:52 +0000 (08:57 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 8 Aug 2016 10:57:57 +0000 (11:57 +0100)
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>
sound/soc/codecs/spdif_transmitter.c

index ef634a9ad673a599329dbb5f6a5cad3a95d2c7af..ee367536a4980a930984f386e515a84f3517de9f 100644 (file)
@@ -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 = {