Commit a3470399 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: codec duplicated callback function goes to component on rt5514

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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b5c998b4
...@@ -1023,12 +1023,14 @@ static struct snd_soc_codec_driver soc_codec_dev_rt5514 = { ...@@ -1023,12 +1023,14 @@ static struct snd_soc_codec_driver soc_codec_dev_rt5514 = {
.probe = rt5514_probe, .probe = rt5514_probe,
.idle_bias_off = true, .idle_bias_off = true,
.set_bias_level = rt5514_set_bias_level, .set_bias_level = rt5514_set_bias_level,
.controls = rt5514_snd_controls, .component_driver = {
.num_controls = ARRAY_SIZE(rt5514_snd_controls), .controls = rt5514_snd_controls,
.dapm_widgets = rt5514_dapm_widgets, .num_controls = ARRAY_SIZE(rt5514_snd_controls),
.num_dapm_widgets = ARRAY_SIZE(rt5514_dapm_widgets), .dapm_widgets = rt5514_dapm_widgets,
.dapm_routes = rt5514_dapm_routes, .num_dapm_widgets = ARRAY_SIZE(rt5514_dapm_widgets),
.num_dapm_routes = ARRAY_SIZE(rt5514_dapm_routes), .dapm_routes = rt5514_dapm_routes,
.num_dapm_routes = ARRAY_SIZE(rt5514_dapm_routes),
},
}; };
static const struct regmap_config rt5514_i2c_regmap = { static const struct regmap_config rt5514_i2c_regmap = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment