未验证 提交 2759ba9b 编写于 作者: K Kuninori Morimoto 提交者: Mark Brown

ASoC: Intel: bytcr_rt5651: don't use codec anymore

commit aeec6cc0 ("ASoC: Intel: bytcr_rt5651: Configure PLL1 before
using it") is using codec->dev, but codec is replaced to component.
Let's use component

Fixes: aeec6cc0 ("ASoC: Intel: bytcr_rt5651: Configure PLL1 before using it")
Signed-off-by: NKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: NMark Brown <broonie@kernel.org>
上级 fc9fdd61
...@@ -147,14 +147,14 @@ static int byt_rt5651_prepare_and_enable_pll1(struct snd_soc_dai *codec_dai, ...@@ -147,14 +147,14 @@ static int byt_rt5651_prepare_and_enable_pll1(struct snd_soc_dai *codec_dai,
} }
ret = snd_soc_dai_set_pll(codec_dai, 0, clk_id, clk_freq, rate * 512); ret = snd_soc_dai_set_pll(codec_dai, 0, clk_id, clk_freq, rate * 512);
if (ret < 0) { if (ret < 0) {
dev_err(codec_dai->codec->dev, "can't set pll: %d\n", ret); dev_err(codec_dai->component->dev, "can't set pll: %d\n", ret);
return ret; return ret;
} }
ret = snd_soc_dai_set_sysclk(codec_dai, RT5651_SCLK_S_PLL1, ret = snd_soc_dai_set_sysclk(codec_dai, RT5651_SCLK_S_PLL1,
rate * 512, SND_SOC_CLOCK_IN); rate * 512, SND_SOC_CLOCK_IN);
if (ret < 0) { if (ret < 0) {
dev_err(codec_dai->codec->dev, "can't set clock %d\n", ret); dev_err(codec_dai->component->dev, "can't set clock %d\n", ret);
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册