How to set the audio i2s clock on imx6q

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to set the audio i2s clock on imx6q

1,382件の閲覧回数
linhsun
Contributor III

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;

タグ(3)
0 件の賞賛
返信
1 返信

1,150件の閲覧回数
joanxie
NXP TechSupport
NXP TechSupport

I send a patch to you for your case, get SSI to work in master mode ans wm8962 as slave. hope helpful for you

No sound captured with SGTL5000 on i.MX6 in I²S master mode - Patchwork 

0 件の賞賛
返信