Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Kuninori Morimoto and committed by
Mark Brown
1581db96 9ae035e2

+1 -1
+1 -1
sound/soc/sprd/sprd-pcm-dma.c
··· 190 190 { 191 191 struct snd_pcm_runtime *runtime = substream->runtime; 192 192 struct sprd_pcm_dma_private *dma_private = runtime->private_data; 193 - struct snd_soc_pcm_runtime *rtd = substream->private_data; 193 + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); 194 194 struct sprd_pcm_dma_params *dma_params; 195 195 size_t totsize = params_buffer_bytes(params); 196 196 size_t period = params_period_bytes(params);