From: Peter Meerwald
Date: Tue, 5 Jul 2016 09:46:29 +0000 (+0200)
Subject: ASoC: atmel_ssc_dai: Fix DMA params for different SSC
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e401029e514b6ba94d21212a957de6010581f17a;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git
ASoC: atmel_ssc_dai: Fix DMA params for different SSC
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
Signed-off-by: Mark Brown
---
diff --git a/sound/soc/atmel/atmel_ssc_dai.c b/sound/soc/atmel/atmel_ssc_dai.c
index 1267e1af0fae..54c09acd3fed 100644
--- a/sound/soc/atmel/atmel_ssc_dai.c
+++ b/sound/soc/atmel/atmel_ssc_dai.c
@@ -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;