How to port wm8727 driver to mx6q

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to port wm8727 driver to mx6q

790 次查看
dongyh
Contributor I

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:

86853_86853.pngpastedImage_1.png

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:

86854_86854.pngpastedImage_2.png

 

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

0 项奖励
回复
1 回复

640 次查看
igorpadykov
NXP Employee
NXP Employee

Hi dong

one can look at wm8727 example at

mx6-dev/wm8727.c at master · lplachno/mx6-dev · GitHub

and attached Porting Guide Chapter 8 Porting Audio Codecs to a Custom Board

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复