Skip to content

Commit aafa4ef

Browse files
morimotobroonie
authored andcommitted
ASoC: xtensa: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer
Signed-off-by: Kuninori Morimoto <[email protected]> Tested-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 99396e3 commit aafa4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/xtensa/xtfpga-i2s.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ static int xtfpga_pcm_open(struct snd_soc_component *component,
373373
void *p;
374374

375375
snd_soc_set_runtime_hwparams(substream, &xtfpga_pcm_hardware);
376-
p = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
376+
p = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream);
377377
runtime->private_data = p;
378378

379379
return 0;

0 commit comments

Comments
 (0)