]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: img: use asoc_rtd_to_cpu() / asoc_rtd_to_codec() macro for DAI pointer
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 23 Mar 2020 05:18:53 +0000 (14:18 +0900)
committerMark Brown <broonie@kernel.org>
Fri, 27 Mar 2020 14:44:37 +0000 (14:44 +0000)
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>
sound/soc/img/img-i2s-in.c
sound/soc/img/img-i2s-out.c

index fdd2c73fd2fac065d1c653b28c35270da334d366..a495d1050d490f39116479c170550b9320986d46 100644 (file)
@@ -397,7 +397,7 @@ static int img_i2s_in_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)
index 4b18534096336bdf0c66c62cebf5df81732a4d3c..db052ec17d5d8ca26912b081bdb5ecc18641f797 100644 (file)
@@ -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)