8M Plus - Asynchronous Sample Rate Converter (ASRC)

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

8M Plus - Asynchronous Sample Rate Converter (ASRC)

跳至解决方案
843 次查看
djsftree
Contributor I

Hi,

Section 14.5 descibes the ASRC in the 8M Plus.

This looks more advanced that previous ASRC in Freescale MCUs.

I am particularly interested in the FIR / IFIR pre-filters per context - see 14.5.2.7

Are there any plans to bring this advanced filtering functionality to the ALSA plugin?

https://github.com/nxp-imx/imx-alsa-plugins

If not, do you have any example code for the FIR / IFIR filtering contexts?

I'm seeing some traffic regraing the ASRC for the 8M N

https://github.com/Freescale/meta-freescale/pull/1389

It looks like it requires a firmware binary for coefficients.

https://github.com/Freescale/meta-freescale/commit/2cc7e931cdae51aeb2eeddb69b2c0a16784fa8d8

dts looks like it shows firmware binary too

https://www.kernel.org/doc/Documentation/devicetree/bindings/sound/fsl%2Ceasrc.yaml

0 项奖励
1 解答
802 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @djsftree 

I hope you are doing well.

Are there any plans to bring this advanced filtering functionality to the ALSA plugin?

[Ans]: We can't share this information until the next BSP release.

Yes, ASRC requires firmware binary.

It is referenced in easrc node at imx8mp.dtsi as below.

firmware-name = "imx/easrc/easrc-imx8mn.bin";

firmware binaries can be placed at /lib/firmware/imx in rootfs

One can download firmware binaries using as below.

$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.18.bin

$ chmod +x firmware-imx-8.18.bin

$ ./firmware-imx-8.18.bin

easrc binary can be found at ~/firmware-imx-8.18/firmware/easrc

One can refer to /sound/soc/fsl/fsl_easrc.c

Thanks & Regards

Sanket Parekh

在原帖中查看解决方案

0 项奖励
3 回复数
798 次查看
djsftree
Contributor I

Thanks Sanket.  I look forward to using the ASRC soon!

0 项奖励
803 次查看
Sanket_Parekh
NXP TechSupport
NXP TechSupport

Hi @djsftree 

I hope you are doing well.

Are there any plans to bring this advanced filtering functionality to the ALSA plugin?

[Ans]: We can't share this information until the next BSP release.

Yes, ASRC requires firmware binary.

It is referenced in easrc node at imx8mp.dtsi as below.

firmware-name = "imx/easrc/easrc-imx8mn.bin";

firmware binaries can be placed at /lib/firmware/imx in rootfs

One can download firmware binaries using as below.

$ wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-8.18.bin

$ chmod +x firmware-imx-8.18.bin

$ ./firmware-imx-8.18.bin

easrc binary can be found at ~/firmware-imx-8.18/firmware/easrc

One can refer to /sound/soc/fsl/fsl_easrc.c

Thanks & Regards

Sanket Parekh

0 项奖励
10 次查看
praveen_yaramada
Contributor II

Hello @Sanket_Parekh ,

I'm following up on a previous discussion where it was mentioned that we'd need to wait for the next BSP release to see advanced filtering support integrated into the ALSA plugin. Now that some time has passed, I was wondering if these plans have materialized? Is there a merge request or any reference available that details this integration?

Best regards

Praveen

0 项奖励