ASoC: atmel_ssc_dai: Fix DMA params for different SSC
authorPeter Meerwald <p.meerwald@bct-electronic.com>
Tue, 5 Jul 2016 09:46:29 +0000 (11:46 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 7 Jul 2016 10:00:07 +0000 (12:00 +0200)
follow-up patch from c706f2e55f ASoC: atmel_ssc_dai: distinguish the
different SSC

cpu_dai id is always 0, use platform_device id to distinguish DMA
parameters of SSCs

Signed-off-by: Peter Meerwald-Stadler <p.meerwald@bct-electronic.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/atmel/atmel_ssc_dai.c

index 1267e1af0fae420c694577b208c4643dcc3b41ad..54c09acd3fed06f4fba7ef602d0bd7466825c100 100644 (file)
@@ -321,7 +321,7 @@ static int atmel_ssc_startup(struct snd_pcm_substream *substream,
                return ret;
        }
 
-       dma_params = &ssc_dma_params[dai->id][dir];
+       dma_params = &ssc_dma_params[pdev->id][dir];
        dma_params->ssc = ssc_p->ssc;
        dma_params->substream = substream;