summaryrefslogtreecommitdiff
path: root/sound/soc/atmel/atmel-pcm-pdc.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-07-20 04:18:52 +0300
committerMark Brown <broonie@kernel.org>2020-07-23 21:07:33 +0300
commitb1839ebf13bbc23f6cce87e9c25f51338db69166 (patch)
treefbbc9e1355da92706fb8f7893defc641fa507688 /sound/soc/atmel/atmel-pcm-pdc.c
parent0cd08b10ae3b5226ff3433139d56ce6e9f218788 (diff)
downloadlinux-b1839ebf13bbc23f6cce87e9c25f51338db69166.tar.xz
ASoC: atmel: 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/87blkb0ytd.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/atmel/atmel-pcm-pdc.c')
-rw-r--r--sound/soc/atmel/atmel-pcm-pdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/atmel/atmel-pcm-pdc.c b/sound/soc/atmel/atmel-pcm-pdc.c
index a8daebcbf6c8..704f700013d3 100644
--- a/sound/soc/atmel/atmel-pcm-pdc.c
+++ b/sound/soc/atmel/atmel-pcm-pdc.c
@@ -205,7 +205,7 @@ static int atmel_pcm_hw_params(struct snd_soc_component *component,
{
struct snd_pcm_runtime *runtime = substream->runtime;
struct atmel_runtime_data *prtd = runtime->private_data;
- struct snd_soc_pcm_runtime *rtd = substream->private_data;
+ struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
/* this may get called several times by oss emulation
* with different params */