summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-pcm-dma-v2.c
AgeCommit message (Collapse)Author
2019-12-10LF-374: ASoC: imx-pcm-dma-v2: Fix compile issue with SND_SOC_IMX_PCM_DMA=mShengjiu Wang
When build with CONFIG_SND_SOC_IMX_PCM_DMA=m, there is error: ERROR: "snd_pcm_lib_preallocate_free" [sound/soc/fsl/imx-pcm-dma-v2.ko] undefined! The reason is that snd_pcm_lib_preallocate_free is not declared with EXPORT_SYMBOL. In this patch, we use snd_dma_alloc_pages & snd_dma_free_pages to replace the snd_pcm_lib_preallocate_pages & snd_pcm_lib_preallocate_free to fix the build issue. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2019-11-25ASoC: imx-pcm-dma-v2: Fix writecombine/wc build errorLeonard Crestez
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
2019-11-25ASoC: imx-pcm-dma-v2: Add component nameShengjiu Wang
Add component name Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2019-11-25ASoC: imx: fix build failtureDong Aisheng
sound/soc/fsl/imx-pcm-dma-v2.c: In function ‘imx_pcm_preallocate_dma_buffer’: sound/soc/fsl/imx-pcm-dma-v2.c:131:6: error: void value not ignored as it ought to be ret = snd_pcm_lib_preallocate_pages(substream, ^ sound/soc/fsl/imx-pcm-dma-v2.c: In function ‘imx_pcm_free_dma_buffers’: sound/soc/fsl/imx-pcm-dma-v2.c:144:2: error: void value not ignored as it ought to be return snd_pcm_lib_preallocate_free(substream); ^ sound/soc/fsl/imx-pcm-dma-v2.c:145:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25MLK-18947: ASoC: imx-pcm-dma: alloc buffer from IRAMShengjiu Wang
In some platform, the low power audio playback should be supported, which need the audio buffer allocated from OCRAM/IRAM. So move the buffer allocation to .open function at that time the dma chan is allocated. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> (cherry picked from commit 85c59acfc5c8d17aa0f369dbe30e4a5fb128c25f)
2019-11-25MLK-16224-3: ASoC: imx-pcm-dma-v2: fifo_num is used by dma slave configShengjiu Wang
fifo_num is a new added parameter for dma slave config Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2019-11-25MLK-17442: ASoC: fsl: fix wrong usage of filter_data (part 3)Shengjiu Wang
The filter_data should be used for dma_filter_fn function, but we used the filter_data wrongly for dma channel name. This patch is to fix the issue. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> Reviwed-by: Daniel Baluta <daniel.baluta@nxp.com> [ Aisheng: split out DAI sai&esai changes ] Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
2019-11-25MLK-16885-2: ASoC: imx-pcm-dma-v2: query the caps of dmaShengjiu Wang
query the caps of dma, then update the hw parameters according the caps. for EDMA can't support 24bit sample, but we didn't add any constraint, that cause issues. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2019-11-25MLK-15066-2: ASoC: imx-pcm-dma-v2: fix typo issueShengjiu Wang
fix typo issue Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
2019-11-25MLK-15066-1: ASoC: imx-pcm-dma-v2: fix noise issue with pulseaudioShengjiu Wang
Same as commit c55075170214 ("MLK-14582: ASoC: imx-pcm-rpmsg: fix audio noise issue with pulseaudio"), need to add a constraint for SNDRV_PCM_HW_PARAM_PERIODS, which make the period number integer. Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
2019-11-25ASoC: fsl: add imx-pcm-dma v2 platform driver (part 1)Viorel Suman
which don't request the dma channel in the probe, but request dma channel when needed. for the dma channel of cpu dai in BE can be reused by the FE. Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com> [ Aisheng: spli SAI DAI changes ] Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>