AnsweredAssumed Answered

How to port wm8727 driver to mx6q

Question asked by dongq yh on Oct 13, 2015

Hello, I'm a novice at writing driver.

I worked on the following platform:

Android 4.4.2 +kernel Linux 3.0.

sch is simple:

i modify the board file as following.

static struct imx_ssi_platform_data mx6_qcorein_ssi_pdata = {

  .flags = IMX_SSI_DMA | IMX_SSI_SYN,

};

 

static struct platform_device mx6_imx_wm8727 = {

  .name = "imx-wm8727",

};

 

static struct mxc_audio_platform_data mx6_imx_wm8727_data = {

  .ssi_num = 1,

  .src_port = 2,

  .ext_port = 3,

};

 

mxc_register_device(&mx6_imx_wm8727,&mx6_imx_wm8727_data);

imx6q_add_imx_ssi(1,&mx6_qcorein_ssi_pdata );

 

and i write a driver named imx-wm8727.c,

 

after modifying , i get the following log:

 

when i play a file, threr is no voice on speaker .

Is there any wrong ? Who can help me find it ?

Original Attachment has been moved to: imx-wm8727.c.zip

Outcomes