Which source code setup SAI?

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

Which source code setup SAI?

跳至解决方案
1,072 次查看
Takashi_Kashiwagi
Senior Contributor I

Hi Community.

We are developing with IMX8mm.

In our custom board, We will use TDM audio codec(we replace WM8524 to custom FPGA).

so, I should replace audio driver. But I cannot find the source codes.

(I'm looking in the "4.14.78-r0 / git /" folder, but there are many source codes.)

What code do I need to modify to create and modify an audio driver for linux?

Best Regards,

T.Kashiwagi

标签 (2)
1 解答
909 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Takashi,

   According to your application, I think it will be better to follow these steps:

1. Download L4.14.78 documents.

Embedded Linux for i.MX Applications Processors | NXP 

---L4.14.78_1.0.0_LINUX_DOCS

then decompress it, documents below will be obtained:

pastedImage_3.png

2. Downloading and compiling Linux BSP source code

In i.MX_Yocto_Project_User's_Guide.pdf, detailed steps are described, you can download and compiling i.MX8MM linux BSP according to those steps. ( Linux BSP on my computer is 4.14.98)

(1) Platform driver(fsl-sai.c)

pastedImage_6.png

(2) codec driver(wm8524.c)

pastedImage_7.png

(3) machine driver(imx-wm8524.c)

pastedImage_5.png

Hope above information is helpful for you!

Have a nice day!

BR,

Weidong

在原帖中查看解决方案

2 回复数
910 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Hello Takashi,

   According to your application, I think it will be better to follow these steps:

1. Download L4.14.78 documents.

Embedded Linux for i.MX Applications Processors | NXP 

---L4.14.78_1.0.0_LINUX_DOCS

then decompress it, documents below will be obtained:

pastedImage_3.png

2. Downloading and compiling Linux BSP source code

In i.MX_Yocto_Project_User's_Guide.pdf, detailed steps are described, you can download and compiling i.MX8MM linux BSP according to those steps. ( Linux BSP on my computer is 4.14.98)

(1) Platform driver(fsl-sai.c)

pastedImage_6.png

(2) codec driver(wm8524.c)

pastedImage_7.png

(3) machine driver(imx-wm8524.c)

pastedImage_5.png

Hope above information is helpful for you!

Have a nice day!

BR,

Weidong

909 次查看
Takashi_Kashiwagi
Senior Contributor I

HI Weidong.

Thank you for responding!!

I will read the three codes!

Best Regards,

T.Kashiwagi

0 项奖励
回复