AnsweredAssumed Answered

android6.0 i2s master mode

Question asked by HanNing Wu on Feb 7, 2017
Latest reply on Feb 10, 2017 by HanNing Wu

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??

Outcomes