diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2020-07-20 04:18:34 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2020-07-23 21:07:30 +0300 |
commit | ded0054359ddc1bbd9893ce39af22e1ce7a03357 (patch) | |
tree | 840fd0b5f6e0baeb1470044b7fd73e68a146f9ed /sound/soc/amd/acp-rt5645.c | |
parent | 5c5eb29e8a68ef3ab523fe75179dde5710cae6de (diff) | |
download | linux-ded0054359ddc1bbd9893ce39af22e1ce7a03357.tar.xz |
ASoC: amd: use asoc_substream_to_rtd()
Now we can use asoc_substream_to_rtd() macro,
let's use it.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87ft9n0ytv.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/amd/acp-rt5645.c')
-rw-r--r-- | sound/soc/amd/acp-rt5645.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/amd/acp-rt5645.c b/sound/soc/amd/acp-rt5645.c index 87f0060e771f..d6ba94677ac2 100644 --- a/sound/soc/amd/acp-rt5645.c +++ b/sound/soc/amd/acp-rt5645.c @@ -47,7 +47,7 @@ static int cz_aif1_hw_params(struct snd_pcm_substream *substream, struct snd_pcm_hw_params *params) { int ret = 0; - struct snd_soc_pcm_runtime *rtd = substream->private_data; + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); ret = snd_soc_dai_set_pll(codec_dai, 0, RT5645_PLL1_S_MCLK, |