Skip to content

Commit

Permalink
ASoC: imx: set watermarks for mx2-dma
Browse files Browse the repository at this point in the history
They got accidently removed by f0fba2a (ASoC: multi-component - ASoC
Multi-Component Support). Reintroduce them and get rid of the
superfluous defines because the fiq-driver has its own hardcoded values.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
  • Loading branch information
Wolfram Sang authored and Mark Brown committed Mar 26, 2011
1 parent 0ca03cd commit 2c4cf17
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 5 additions & 0 deletions sound/soc/imx/imx-pcm-dma-mx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,11 @@ 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
3 changes: 0 additions & 3 deletions sound/soc/imx/imx-ssi.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,4 @@ void imx_pcm_free(struct snd_pcm *pcm);
*/
#define IMX_SSI_DMABUF_SIZE (64 * 1024)

#define DMA_RXFIFO_BURST 0x4
#define DMA_TXFIFO_BURST 0x6

#endif /* _IMX_SSI_H */

0 comments on commit 2c4cf17

Please sign in to comment.