aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2016-08-08 04:46:41 -0400
committerMark Brown <broonie@kernel.org>2016-08-08 06:57:57 -0400
commit180f58fece4be11125e663983ee3388e6512f159 (patch)
tree38809ccd0fbeea460bf44b39564a76dfaca1553f
parent9731f82d60166a19af6914f998092bbd1560f783 (diff)
ASoC: codec duplicated callback function goes to component on sun4i-codec
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>
-rw-r--r--sound/soc/sunxi/sun4i-codec.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/sound/soc/sunxi/sun4i-codec.c b/sound/soc/sunxi/sun4i-codec.c
index 44f170c73b06..0e19c5070005 100644
--- a/sound/soc/sunxi/sun4i-codec.c
+++ b/sound/soc/sunxi/sun4i-codec.c
@@ -628,12 +628,14 @@ static const struct snd_soc_dapm_route sun4i_codec_codec_dapm_routes[] = {
628}; 628};
629 629
630static struct snd_soc_codec_driver sun4i_codec_codec = { 630static struct snd_soc_codec_driver sun4i_codec_codec = {
631 .controls = sun4i_codec_widgets, 631 .component_driver = {
632 .num_controls = ARRAY_SIZE(sun4i_codec_widgets), 632 .controls = sun4i_codec_widgets,
633 .dapm_widgets = sun4i_codec_codec_dapm_widgets, 633 .num_controls = ARRAY_SIZE(sun4i_codec_widgets),
634 .num_dapm_widgets = ARRAY_SIZE(sun4i_codec_codec_dapm_widgets), 634 .dapm_widgets = sun4i_codec_codec_dapm_widgets,
635 .dapm_routes = sun4i_codec_codec_dapm_routes, 635 .num_dapm_widgets = ARRAY_SIZE(sun4i_codec_codec_dapm_widgets),
636 .num_dapm_routes = ARRAY_SIZE(sun4i_codec_codec_dapm_routes), 636 .dapm_routes = sun4i_codec_codec_dapm_routes,
637 .num_dapm_routes = ARRAY_SIZE(sun4i_codec_codec_dapm_routes),
638 },
637}; 639};
638 640
639static const struct snd_soc_component_driver sun4i_codec_component = { 641static const struct snd_soc_component_driver sun4i_codec_component = {