ASoC: imx: initialize dma_params burstsize just in imx-ssi
authorShawn Guo <shawn.guo@linaro.org>
Sat, 3 Mar 2012 15:19:49 +0000 (23:19 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 4 Mar 2012 13:26:02 +0000 (13:26 +0000)
It's not necessary for imx-pcm-dma-mx2 to access imx_ssi.dma_params
for burstsize initialization.  Instead, it can just be done in imx-ssi
probe function once.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/imx/imx-pcm-dma-mx2.c
sound/soc/imx/imx-ssi.c

index 4cd5462049bc03b5868bf5c66cb3fe1d67462a35..471e2218c971c948e89e213496f2d622294bff3c 100644 (file)
@@ -149,11 +149,6 @@ static struct snd_soc_platform_driver imx_soc_platform_mx2 = {
 
 static int __devinit imx_soc_platform_probe(struct platform_device *pdev)
 {
-       struct imx_ssi *ssi = platform_get_drvdata(pdev);
-
-       ssi->dma_params_tx.burstsize = 6;
-       ssi->dma_params_rx.burstsize = 4;
-
        return snd_soc_register_platform(&pdev->dev, &imx_soc_platform_mx2);
 }
 
index dbf43f5f0aed0627dee580109dfba781f44af7fd..25c623115a9f61337ba3ba93b52667ac271d8f07 100644 (file)
@@ -668,7 +668,7 @@ static int imx_ssi_probe(struct platform_device *pdev)
        ssi->dma_params_rx.dma_addr = res->start + SSI_SRX0;
        ssi->dma_params_tx.dma_addr = res->start + SSI_STX0;
 
-       ssi->dma_params_tx.burstsize = 4;
+       ssi->dma_params_tx.burstsize = 6;
        ssi->dma_params_rx.burstsize = 4;
 
        res = platform_get_resource_byname(pdev, IORESOURCE_DMA, "tx0");