MLK-15066-2: ASoC: imx-pcm-dma-v2: fix typo issue
authorShengjiu Wang <shengjiu.wang@freescale.com>
Mon, 19 Jun 2017 03:28:07 +0000 (11:28 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:28:26 +0000 (15:28 -0500)
fix typo issue

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
sound/soc/fsl/imx-pcm-dma-v2.c

index 34d2395..4479247 100644 (file)
@@ -53,7 +53,7 @@ static int imx_pcm_hw_params(struct snd_pcm_substream *substream,
 {
        struct snd_pcm_runtime *runtime = substream->runtime;
        struct snd_soc_pcm_runtime *rtd = substream->private_data;
-       struct imx_pcm_dma_data *dma_data;
+       struct snd_dmaengine_dai_dma_data *dma_data;
        struct dma_slave_config config;
        struct dma_chan *chan;
        int err = 0;
@@ -79,8 +79,8 @@ static int imx_pcm_hw_params(struct snd_pcm_substream *substream,
                return err;
 
        snd_dmaengine_pcm_set_config_from_dai_data(substream,
-                       snd_soc_dai_get_dma_data(rtd->cpu_dai, substream),
-                       &config);
+                                       dma_data,
+                                       &config);
 
        return dmaengine_slave_config(chan, &config);
 }