]> Git Repo - linux.git/commitdiff
ASoC: xtensa: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer
authorKuninori Morimoto <[email protected]>
Mon, 23 Mar 2020 05:21:42 +0000 (14:21 +0900)
committerMark Brown <[email protected]>
Fri, 27 Mar 2020 14:44:55 +0000 (14:44 +0000)
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]>
sound/soc/xtensa/xtfpga-i2s.c

index bcf442faff7cbba2775d73ecd9599d55d3dcfa16..68af2176b19c95dfde171d4ff00c707672ee6090 100644 (file)
@@ -373,7 +373,7 @@ static int xtfpga_pcm_open(struct snd_soc_component *component,
        void *p;
 
        snd_soc_set_runtime_hwparams(substream, &xtfpga_pcm_hardware);
-       p = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
+       p = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), substream);
        runtime->private_data = p;
 
        return 0;
This page took 0.053766 seconds and 4 git commands to generate.