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

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

authored by

Kuninori Morimoto and committed by
Mark Brown
6501cad6 1581db96

+1 -1
+1 -1
sound/soc/kirkwood/armada-370-db.c
··· 18 18 static int a370db_hw_params(struct snd_pcm_substream *substream, 19 19 struct snd_pcm_hw_params *params) 20 20 { 21 - struct snd_soc_pcm_runtime *rtd = substream->private_data; 21 + struct snd_soc_pcm_runtime *rtd = asoc_substream_to_rtd(substream); 22 22 struct snd_soc_dai *codec_dai = asoc_rtd_to_codec(rtd, 0); 23 23 unsigned int freq; 24 24