Hi
I am porting our codec on android6.0, i need imx6 act as i2s master mode,So i do some changes:
1,exchange int_port ext_port number
2,change dai_format SND_SOC_DAIFMT_CBM_CFM to SND_SOC_DAIFMT_CBS_CFS
but when i use tinyplay to play a wav file, i can see correct bclock and lrclock on their lines ,but no data transfer on TXD line, and have a error (playback write error (DMA or IRQ trouble?)).
also i can not get mclock on it`s lines.
this is my devices tree config:
sound {
 compatible = "fsl,imx6q-sabresd-cs42l52","fsl,imx6dl-sabresd-cs42l52",
 "fsl,imx-audio-cs42l52";
 model = "cs42l52-audio";
 cpu-dai = <&ssi2>;
 audio-codec = <&codec>;
 audio-routing =
 "Ext Spk", "SPKOUTL",
 "Ext Spk", "SPKOUTR",
 "AMIC", "MICBIAS",
 "CPU-Playback", "ASRC-Playback",
 "Playback", "CPU-Playback",
 "ASRC-Capture", "CPU-Capture",
 "CPU-Capture", "Capture";
 mux-int-port = <2>;
 mux-ext-port = <3>;
 };
&i2c3 {
 clock-frequency = <100000>;
 pinctrl-names = "default";
 pinctrl-0 = <&pinctrl_i2c3>;
 status = "okay";
codec: cs42l52@4a {
 compatible = "fsl,cs42l52";
 reg = <0x4a>;
 clocks = <&clks IMX6QDL_CLK_CKO>;
 reset-gpio = <&gpio6 23 0>;
 };
};
so i must miss something, can you help me??
Hi HanNing
for master mode one can look at
No sound captured with SGTL5000 on i.MX6 in I²S master mode - Patchwork
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi igorpadykov
Thanks, i have already fixed it.