some question for porting wm8960 to yocto 1.6.2

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

some question for porting wm8960 to yocto 1.6.2

891 Views
chuyuanchiang
Contributor I

ChuYuan Chiang asked4 days ago

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

Tags (3)
0 Kudos
1 Reply

423 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Please check carefully Your configuration using 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


Have a great day,
Yuri

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

0 Kudos