summaryrefslogtreecommitdiffstats
path: root/sound/soc/sprd
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-07-20 03:19:37 +0200
committerMark Brown <broonie@kernel.org>2020-07-23 20:07:40 +0200
commit1581db969ca0331af69de0dfd42e7b7b4d2a11e8 (patch)
treec601a38856b39f42b1ad5d6b5376f69c6f3c84fe /sound/soc/sprd
parentASoC: generic: use asoc_substream_to_rtd() (diff)
downloadlinux-1581db969ca0331af69de0dfd42e7b7b4d2a11e8.tar.xz
linux-1581db969ca0331af69de0dfd42e7b7b4d2a11e8.zip
ASoC: sprd: 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/87y2nfyoes.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sprd')
-rw-r--r--sound/soc/sprd/sprd-pcm-dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sprd/sprd-pcm-dma.c b/sound/soc/sprd/sprd-pcm-dma.c
index 5074123f8855..5e3a96d4793c 100644
--- a/sound/soc/sprd/sprd-pcm-dma.c
+++ b/sound/soc/sprd/sprd-pcm-dma.c
@@ -190,7 +190,7 @@ static int sprd_pcm_hw_params(struct snd_soc_component *component,
{
struct snd_pcm_runtime *runtime = substream->runtime;
struct sprd_pcm_dma_private *dma_private = runtime->private_data;
- struct snd_soc_pcm_runtime *rtd = substream->private_data;
+ struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream);
struct sprd_pcm_dma_params *dma_params;
size_t totsize = params_buffer_bytes(params);
size_t period = params_period_bytes(params);