I would like to connect a microphone to the SAI 2 on the imx8qm. For this I integrated the microphone in the DTB file.
...
cpu-dai = <&sai2>;
...
As a result, when I create the microphone as a card, I get an error.
fsl-sai 59060000.sai: Missing dma channel for stream: (in the dmaengine_pcm_new function)
This is due to the fact that the SAI2 only has one DMA. (only RX)
1.)Is there any way I can take that into account?
The error no longer occurs if you define an additional DMA in SAI2.
2.) Is this acceptable?
3.) Or will I get the following problem?
4.) Or is there another solution?
sai2: sai@59060000 {
compatible = "fsl,imx8qm-sai";
reg = <0x59060000 0x10000>;
interrupts = <GIC_SPI 318 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&sai2_lpcg 1>,
<&clk_dummy>,
<&sai2_lpcg 0>,
<&clk_dummy>,
<&clk_dummy>;
clock-names = "bus", "mclk0", "mclk1", "mclk2", "mclk3";
/* dma-names = "rx";
dmas = <&edma0 16 0 1>; */
dma-names = "rx", "tx";
dmas = <&edma0 16 0 1>, <&edma0 17 0 0>;
power-domains = <&pd IMX_SC_R_SAI_2>;
status = "disabled";