diff options
author | 2020-07-20 10:19:37 +0900 | |
---|---|---|
committer | 2020-07-23 19:07:40 +0100 | |
commit | 1581db969ca0331af69de0dfd42e7b7b4d2a11e8 (patch) | |
tree | c601a38856b39f42b1ad5d6b5376f69c6f3c84fe /sound/soc/sprd | |
parent | ASoC: generic: use asoc_substream_to_rtd() (diff) | |
download | linux-1581db969ca0331af69de0dfd42e7b7b4d2a11e8.tar.gz linux-1581db969ca0331af69de0dfd42e7b7b4d2a11e8.tar.bz2 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.c | 2 |
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); |