Skip to content

Commit

Permalink
ASoC: imx: initialize dma_params burstsize just in imx-ssi
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn Guo authored and Mark Brown committed Mar 4, 2012
1 parent 1defde2 commit 9a3a101
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions sound/soc/imx/imx-pcm-dma-mx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down
2 changes: 1 addition & 1 deletion sound/soc/imx/imx-ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 9a3a101

Please sign in to comment.