diff options
author | Zidan Wang <zidan.wang@freescale.com> | 2015-06-25 19:07:58 +0800 |
---|---|---|
committer | Nitin Garg <nitin.garg@freescale.com> | 2015-09-17 09:23:45 -0500 |
commit | 2370a4a0e877a47e50b476e9ae41e2268a146558 (patch) | |
tree | bf9b1e5c6bfa3a5b9391bac2be845062a2dc23df /sound | |
parent | 1dddb54c74934b0ed39ad9a18cdd3e0360969f49 (diff) |
MLK-11169 ASoC: fsl_sai: using special pcm config for IMX series
Using special pcm config for IMX series.
The dafault pcm config is using 512K DMA Buffer which will cause
allocating from OCRAM failed. The special pcm config will using 64K
DMA buffer.
Signed-off-by: Zidan Wang <zidan.wang@freescale.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/fsl_sai.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index b52fd7d121ff..78c8fbfd65ea 100644 --- a/sound/soc/fsl/fsl_sai.c +++ b/sound/soc/fsl/fsl_sai.c @@ -734,10 +734,9 @@ static int fsl_sai_probe(struct platform_device *pdev) sai->pdev = pdev; - if (of_device_is_compatible(pdev->dev.of_node, "fsl,imx6sx-sai")) - sai->sai_on_imx = true; - - if (of_device_is_compatible(pdev->dev.of_node, "fsl,imx7d-sai")) + if (of_device_is_compatible(pdev->dev.of_node, "fsl,imx6sx-sai") || + of_device_is_compatible(pdev->dev.of_node, "fsl,imx6ul-sai") || + of_device_is_compatible(pdev->dev.of_node, "fsl,imx7d-sai")) sai->sai_on_imx = true; sai->is_lsb_first = of_property_read_bool(np, "lsb-first"); |