Commit 04e8262a authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Mark Brown

ASoC: rt5514: replace codec to component

Now we can replace Codec to Component. Let's do it.

Note:
	xxx_codec_xxx()		->	xxx_component_xxx()
	.idle_bias_off = 1	->	.idle_bias_on = 0
	.ignore_pmdown_time = 0	->	.use_pmdown_time = 1
	-			->	.endianness = 1
	-			->	.non_legacy_dai_naming = 1
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7928b2cb
...@@ -474,9 +474,9 @@ static int __maybe_unused rt5514_suspend(struct device *dev) ...@@ -474,9 +474,9 @@ static int __maybe_unused rt5514_suspend(struct device *dev)
static int __maybe_unused rt5514_resume(struct device *dev) static int __maybe_unused rt5514_resume(struct device *dev)
{ {
struct snd_soc_platform *platform = snd_soc_lookup_platform(dev); struct snd_soc_component *component = snd_soc_lookup_component(dev, DRV_NAME);
struct rt5514_dsp *rt5514_dsp = struct rt5514_dsp *rt5514_dsp =
snd_soc_platform_get_drvdata(platform); snd_soc_component_get_drvdata(component);
int irq = to_spi_device(dev)->irq; int irq = to_spi_device(dev)->irq;
u8 buf[8]; u8 buf[8];
......
This diff is collapsed.
...@@ -272,7 +272,7 @@ enum { ...@@ -272,7 +272,7 @@ enum {
struct rt5514_priv { struct rt5514_priv {
struct rt5514_platform_data pdata; struct rt5514_platform_data pdata;
struct snd_soc_codec *codec; struct snd_soc_component *component;
struct regmap *i2c_regmap, *regmap; struct regmap *i2c_regmap, *regmap;
struct clk *mclk, *dsp_calib_clk; struct clk *mclk, *dsp_calib_clk;
int sysclk; int sysclk;
......
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