AnsweredAssumed Answered

How to set the audio i2s clock on imx6q

Question asked by Lin Hsun on Aug 6, 2017
Latest reply on Aug 25, 2017 by Joan Xie

Dear all

 

My codec is wm8962. I changed the codec to slave mode. However, by measuring MCLK is 24M, BCLK is 2.8M, FS is 44K. My question is as follows:

  1. Where does the BCLK signal generate 2.8M of code?

  2. Can I change the BCLK signal to 1.3M?

 

Please give me advice? Thanks.

 

My code is modified as follows:

dts

&ssi2 {

--   fsl,mode = "i2s-slave"; 

++ fsl,mode = "i2s-master";
      status = "okay";
};

 

     "Playback", "CPU-Playback",
     "ASRC-Capture", "CPU-Capture", 
     "CPU-Capture", "Capture";
--   mux-int-port = <2>;

--   mux-ext-port = <3>;
++ mux-int-port = <3>;
++ mux-ext-port = <2>;
     hp-det-gpios = <&gpio7 8 1>; 
     mic-det-gpios = <&gpio1 9 1>;
};

 

code

--    dai_format = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBM_CFM;

++  dai_format = SND_SOC_DAIFMT_I2S | SND_SOC_DAIFMT_NB_NF | SND_SOC_DAIFMT_CBS_CFS;

Outcomes