Dose imx6 yocto BSP including fsl-alsa-plugin?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dose imx6 yocto BSP including fsl-alsa-plugin?

Jump to solution
2,739 Views
arc_lin
Contributor II

Hi All,

I am trying to use hardware ASRC, and it supported by fsl-alsa-plugin.

But according to kernel log, while calling aplay or arecoed with alsa plugin, hardware ASRC doesn't be called.

Does iMX yocto BS support fsl-alsa-plugin or not, or how to use it, Thanks!

螢幕快照 2018-11-29 下午3.50.01.png

Labels (4)
Tags (4)
0 Kudos
Reply
1 Solution
2,355 Views
igorpadykov
NXP Employee
NXP Employee

Hi Arc

for asrc usage one can check its driver description in sect.7.2

Asynchronous Sample Rate Converter (ASRC) attached Linux Manual.

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

View solution in original post

0 Kudos
Reply
5 Replies
2,355 Views
igorpadykov
NXP Employee
NXP Employee

Hi arc

hardware asrc is supported in i.mx official nxp bsps described on

i.MX Software|NXP 

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

0 Kudos
Reply
2,355 Views
arc_lin
Contributor II

Hi Igor,

Do you know how to enable fsl-alsa-plugin ASRC feature in iMX BSP?

I'am follow the instruction modify /etc/asound.conf
螢幕快照 2018-11-30 上午11.29.15.png

but arecord -vD asrc result shows no ASRC was enabled.

Thanks!

Arc.

0 Kudos
Reply
2,356 Views
igorpadykov
NXP Employee
NXP Employee

Hi Arc

for asrc usage one can check its driver description in sect.7.2

Asynchronous Sample Rate Converter (ASRC) attached Linux Manual.

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

0 Kudos
Reply
1,999 Views
youngOne
Contributor I

Hello @igorpadykov 

I tried the ~/.asoundrc configuration as mentioned in 7.2.3.2 of attached manual.

But when I do, aplay -l | grep ASRC, it returns blank. 

aplay -l , lists only card0, device0.

So what could have gone wrong? How to ensure alsa resampling by ASRC?

 

Further info on my imx6 yocto:

1. snd-soc-fsl-asrc kernel module is loaded

2. /dev/mxc_asrc exists

3. /proc/driver/asrc doesn't exist

4. cat /proc/asound/cards lists only card0

 

 

Thanks! 

 

0 Kudos
Reply
2,355 Views
arc_lin
Contributor II

Hi Igor,

I am simply copy tmp/sysroots/imx6qsabresd/usr/lib/alsa-lib/ directory from yocto to rootfs, and alsa-plugin executes successfully.

 

As follows i.MX_Reference_Manual.pdf, unit_tests works fine

螢幕快照 2018-12-03 下午5.39.47.png

"@@  fsl_asrc_ioctl_config_pair " is a printed log make sure ASRC has been called

But while using fsl-alsa-plugin to SPDIF device,

螢幕快照 2018-12-04 下午8.22.01.png

螢幕快照 2018-12-04 下午8.22.18.png

it shows

螢幕快照 2018-12-04 下午8.34.45.png

but without any SPDIF signal output

Should i open another thread for this discussion?

Thanks!
Arc.

0 Kudos
Reply