some question for porting wm8960 on yocto 1.6.2

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

some question for porting wm8960 on yocto 1.6.2

1,163 Views
chuyuanchiang
Contributor I

Hi,

I found this url Porting WM8960 to Android jb4.2.2  about porting the wm8960 in android (kernel version is 3.0.35)

but in yocto 1.6.2 that is using device tree and 3.10.53 kernel.

I try port it, but the AUD3_TXD still not output any signal.

the following is my device tree for sound part:

sound {
compatible = "fsl,imx-audio-wm8960";
model = "wm8960-audio";
cpu-dai = <&ssi2>;
audio-codec = <&codec>;
codec-master;
gpr = <&gpr>;
audio-routing =
"Headset Jack", "HP_L",
"Headset Jack", "HP_R",
"Ext Spk", "SPK_LP",
"Ext Spk", "SPK_LN",
"Ext Spk", "SPK_RP",
"Ext Spk", "SPK_RN";
hp-det = <3 1>;
hp-det-gpios = <&gpio7 8 0>;
mic-det-gpios = <&gpio1 9 0>;
};

codec: wm8960@1a {
compatible = "wlf,wm8960";
reg = <0x1a>;
status = "okay";
clocks = <&clks 201>;
clock-names = "mclk";
wlf,shared-lrclk;

       };

&audmux {

  pinctrl-names = "default";

  pinctrl-0 = <&pinctrl_audmux_wcp>;

  status = "okay";

  ssi2 {

  fsl,audmux-port = <MX31_AUDMUX_PORT2_SSI1>;

  fsl,port-config = <

  (IMX_AUDMUX_V2_PTCR_TFSDIR |

  IMX_AUDMUX_V2_PTCR_SYN |

  IMX_AUDMUX_V2_PTCR_TFSEL(MX31_AUDMUX_PORT3_SSI_PINS_3) |

  IMX_AUDMUX_V2_PTCR_TCLKDIR |

  IMX_AUDMUX_V2_PTCR_TCSEL(MX31_AUDMUX_PORT3_SSI_PINS_3))

  IMX_AUDMUX_V2_PDCR_RXDSEL(MX31_AUDMUX_PORT3_SSI_PINS_3)

  >;

  };

  aud3 {

  fsl,audmux-port = <MX31_AUDMUX_PORT3_SSI_PINS_3>;

  fsl,port-config = <

  IMX_AUDMUX_V2_PTCR_SYN

  IMX_AUDMUX_V2_PDCR_RXDSEL(MX31_AUDMUX_PORT2_SSI1)

  >;

  };

};

Dose any one have idea about this?

Thanks,

ChuYuan

Labels (5)
0 Kudos
3 Replies

519 Views
Yuri
NXP Employee
NXP Employee

   Please refer to Chapter 8 (Porting Audio Codecs to a Custom Board)

of “i.MX_6_BSP_Porting_Guide.pdf” in Linux BSP documentation

http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX6_SW

Recent documentation may be found in L3.10.28.

http://www.freescale.com/webapp/Download?colCode=L3.14.28_1.0.0_iMX6QDLS_BUNDLE


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

519 Views
chuyuanchiang
Contributor I

Hi Yuri,

I can measure the clock from codec (my codec is i2s master and ssi is i2s slave), but I still not measure the data from AUD3_TXD

do you have experience about how to debug ssi step by step?

Thanks,

ChuYuan

0 Kudos

519 Views
唯唯胡
Contributor I

Actually I need some support about the usb device development of K64

0 Kudos