16 #include <linux/device.h>
20 #include <linux/module.h>
22 #include <linux/slab.h>
24 #include <linux/types.h>
39 if (!imx_dma_is_general_purpose(chan))
56 dma_params = snd_soc_dai_get_dma_data(rtd->
cpu_dai, substream);
76 snd_pcm_set_runtime_buffer(substream, &substream->
dma_buffer);
93 .period_bytes_min = 128,
94 .period_bytes_max = 65535,
109 dma_params = snd_soc_dai_get_dma_data(rtd->
cpu_dai, substream);
111 dma_data = kzalloc(
sizeof(*dma_data),
GFP_KERNEL);
142 .open = snd_imx_open,
143 .close = snd_imx_close,
145 .hw_params = snd_imx_pcm_hw_params,
170 .name =
"imx-pcm-audio",
173 .probe = imx_soc_platform_probe,