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
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!
-----------------------------------------------------------------------------------------------------------------------