summaryrefslogtreecommitdiff
path: root/sound/soc/meson/meson-card-utils.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-07-20 04:19:14 +0300
committerMark Brown <broonie@kernel.org>2020-07-23 21:07:35 +0300
commit371a014d4260e119b5ae9df782af88cc58557df1 (patch)
treeb8f39bab2e33824ccfee6873f2931b99c4f32de3 /sound/soc/meson/meson-card-utils.c
parenta7c7ff1a47ff6974b6fc4ab30632cd0ad02797b1 (diff)
downloadlinux-371a014d4260e119b5ae9df782af88cc58557df1.tar.xz
ASoC: meson: 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/875zaj0ysr.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson/meson-card-utils.c')
-rw-r--r--sound/soc/meson/meson-card-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/meson/meson-card-utils.c b/sound/soc/meson/meson-card-utils.c
index 5a4a91c88734..29b601a0e274 100644
--- a/sound/soc/meson/meson-card-utils.c
+++ b/sound/soc/meson/meson-card-utils.c
@@ -13,7 +13,7 @@ int meson_card_i2s_set_sysclk(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params,
unsigned int mclk_fs)
{
- 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;
unsigned int mclk;
int ret, i;