Hi expert,
On our IMX6SL platform, I cannot do the aplay to test the audio.
when I do aplay test command(aplay -l), it shows that: cannot find aplay in system/bin.
Could you help me?
Is it based on imx6jb2\hardware\qcom\audio\libalsa-intf source code?
Thank You!
BRs,
Jack
Hi, Jack,
if you are using android BSP, ALSA tool shoudl be "tinyplay/tinymix/tinycap", and they are at path system/bin/.
Regards,
Weidong
I would like to update this thread with an alternative proposed by the user.
am start -a
"android.intent.action.VIEW" -t
"audio/mp3" -d
"file:///data/test.mp3"
Hi Gusarambula,
Yes, this command can work well.
But I think that there should be another method by tinyalsa.
such as:
tinymix SLIM RX1 MUX:AIF1_PB
tinymix SLIM_0_RX Channels:One
tinymix RX4 MIX1 INP1:RX1
tinymix RX4 Digital Volume:50
tinymix SPK DAC Switch:1
tinymix SLIMBUS_0_RX Audio Mixer MultiMedia1:1
tinyplay xxxx.wav -D 0 -d 0
Hi Weidong,
Please help to provide the tinymix & tonyplay command for test.
Thank You!
BTW: on Qualcomm platform:
speaker:
tinymix "SLIM RX1 MUX" AIF1_PB
tinymix "SLIM_0_RX Channels" One
tinymix "RX7 MIX1 INP1" RX1
tinymix "RX7 Digital Volume" 98
tinymix "COMP0 Switch" 1
tinyplay /data/test.wav
BRs,
Jack
Hi Jack,
After you compile android source code , then burn them into SD card or Flash on board, when you boot the board, you can find these 3 commands at path "system/bin/",.or you can get them from NFS DEMO iMage released by freescale for EVK board.
Regards,
Weidong
Hi Weidong,
Yes, I can find these ALSA tool in system/bin.
But they cannot work well:
tinyplay /data/out.wav -D 0 -d 0
Unable to open PCM device 0 (cannot set hw params: Invalid argument)
Could you help to check this error?
thanks!
BRs,
Jack
On my another question, they said that it can use aplay...(How to send the stereo audio sound to mono SPKOUTL? )
Anyway, tinyplay can be found in system/bin.
But, it is still error:
tinyplay /data/out.wav -D 0 -d 0
Unable to open PCM device 0 (cannot set hw params: Invalid argument)
It seems that SNDRV_PCM_IOCTL_HW_PARAMS can not pass.
Would you like to help check it?
Thank you!
BRs,
Jack