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

ASoC: xtensa: 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/87v9ijyoek.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Kuninori Morimoto and committed by
Mark Brown
8d08d9b0 6501cad6

+1 -1
+1 -1
sound/soc/xtensa/xtfpga-i2s.c
··· 369 369 struct snd_pcm_substream *substream) 370 370 { 371 371 struct snd_pcm_runtime *runtime = substream->runtime; 372 - struct snd_soc_pcm_runtime *rtd = substream->private_data; 372 + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); 373 373 void *p; 374 374 375 375 snd_soc_set_runtime_hwparams(substream, &xtfpga_pcm_hardware);