android6.0 i2s master mode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

android6.0 i2s master mode

745 Views
hanningwu
Contributor I

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

0 Kudos
2 Replies

553 Views
igorpadykov
NXP Employee
NXP Employee

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

0 Kudos

553 Views
hanningwu
Contributor I

Hi igorpadykov

  Thanks, i have already fixed it.

0 Kudos