Skip to content

Commit

Permalink
ASoC: imx-ssi: honor IMX_SSI_DMA flag
Browse files Browse the repository at this point in the history
When checking if we are DMA capable we have to check for the
IMX_SSI_DMA flag which is already set from platform_data instead
of setting it again when we want to do DMA.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Liam Girdwood <lrg@Slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Sascha Hauer authored and Mark Brown committed Apr 8, 2010
1 parent 78e4fd2 commit 206b60e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/imx/imx-ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -655,7 +655,8 @@ static int imx_ssi_probe(struct platform_device *pdev)
dai->private_data = ssi;

if ((cpu_is_mx27() || cpu_is_mx21()) &&
!(ssi->flags & IMX_SSI_USE_AC97)) {
!(ssi->flags & IMX_SSI_USE_AC97) &&
(ssi->flags & IMX_SSI_DMA)) {
ssi->flags |= IMX_SSI_DMA;
platform = imx_ssi_dma_mx2_init(pdev, ssi);
} else
Expand Down

0 comments on commit 206b60e

Please sign in to comment.