Skip to content

Commit 22f5680

Browse files
krzkbroonie
authored andcommitted
ASoC: meson: Use snd_soc_substream_to_rtd() for accessing private_data
Do not open-code snd_soc_substream_to_rtd(). Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 410a451 commit 22f5680

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sound/soc/meson/aiu-fifo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
static struct snd_soc_dai *aiu_fifo_dai(struct snd_pcm_substream *ss)
2727
{
28-
struct snd_soc_pcm_runtime *rtd = ss->private_data;
28+
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(ss);
2929

3030
return snd_soc_rtd_to_cpu(rtd, 0);
3131
}

sound/soc/meson/axg-fifo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ static struct snd_pcm_hardware axg_fifo_hw = {
4646

4747
static struct snd_soc_dai *axg_fifo_dai(struct snd_pcm_substream *ss)
4848
{
49-
struct snd_soc_pcm_runtime *rtd = ss->private_data;
49+
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(ss);
5050

5151
return snd_soc_rtd_to_cpu(rtd, 0);
5252
}

0 commit comments

Comments
 (0)