Hi,
I want to use aplay to play a sound on raspberry pi 3, but for some
reason it does not work for me.
I have built a new "rpi-test-image" with only one difference from
original- I added "alsa-utils" to the image.
My steps:
1. I ssh'd to the board with the built image,
2. downloaded wav sample ("wget
http://freewavesamples.com/files/Korg-Triton-Harmonica-C5.wav"),
3. enabled the sound kernel module ("modprobe snd-bcm2835"),
4. tried to play it with "aplay" tool.
It did not work and I got an error:
root@raspberrypi3:~# aplay ./Korg-Triton-Harmonica-C5.wav
ALSA lib ../../alsa-lib-1.1.2/src/confmisc.c:767:(parse_card) cannot
find card '0'
ALSA lib ../../alsa-lib-1.1.2/src/conf.c:4371:(_snd_config_evaluate)
function snd_func_card_driver returned error: No such file or directory
ALSA lib ../../alsa-lib-1.1.2/src/confmisc.c:392:(snd_func_concat) error
evaluating strings
ALSA lib ../../alsa-lib-1.1.2/src/conf.c:4371:(_snd_config_evaluate)
function snd_func_concat returned error: No such file or directory
ALSA lib ../../alsa-lib-1.1.2/src/confmisc.c:1246:(snd_func_refer) error
evaluating name
ALSA lib ../../alsa-lib-1.1.2/src/conf.c:4371:(_snd_config_evaluate)
function snd_func_refer returned error: No such file or directory
ALSA lib ../../alsa-lib-1.1.2/src/conf.c:4850:(snd_config_expand)
Evaluate error: No such file or directory
ALSA lib
../../../alsa-lib-1.1.2/src/pcm/pcm.c:2450:(snd_pcm_open_noupdate)
Unknown PCM default
aplay: main:786: audio open error: No such file or directory
Playing the same wav file with omxplayer ("omxplayer -o local
./Korg-Triton-Harmonica-C5.wav") works fine.
Do you know how can I set up alsa to make it work on rpi3 board?
Does anybody have it working?
I don't know whether I should start with the alsa configuration or some
missing packages, or the problem lays in the sound driver.
Any help appreciated,
Thanks,
Piotr Lewicki
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto