summaryrefslogtreecommitdiffstats
path: root/sound/soc/img/img-i2s-out.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2020-03-23 06:18:53 +0100
committerMark Brown <broonie@kernel.org>2020-03-27 15:44:37 +0100
commit4d3801d5f49d6d06cabad7afad97d3a155de4a84 (patch)
tree3448e29a5b97e079b40f2ebeca969c2f56ff3948 /sound/soc/img/img-i2s-out.c
parentASoC: generic: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer (diff)
downloadlinux-4d3801d5f49d6d06cabad7afad97d3a155de4a84.tar.xz
linux-4d3801d5f49d6d06cabad7afad97d3a155de4a84.zip
ASoC: img: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Tested-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/87sghzir7m.wl-kuninori.morimoto.gx@renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/img/img-i2s-out.c')
-rw-r--r--sound/soc/img/img-i2s-out.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/img/img-i2s-out.c b/sound/soc/img/img-i2s-out.c
index 4b1853409633..db052ec17d5d 100644
--- a/sound/soc/img/img-i2s-out.c
+++ b/sound/soc/img/img-i2s-out.c
@@ -403,7 +403,7 @@ static int img_i2s_out_dma_prepare_slave_config(struct snd_pcm_substream *st,
struct snd_dmaengine_dai_dma_data *dma_data;
int ret;
- dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, st);
+ dma_data = snd_soc_dai_get_dma_data(asoc_rtd_to_cpu(rtd, 0), st);
ret = snd_hwparams_to_dma_slave_config(st, params, sc);
if (ret)