[yocto] [meta-raspberrypi][question] how to setup alsa on rpi3?
Tanu Kaskinen
tanuk at iki.fi
Sat Oct 22 07:57:13 PDT 2016
On Fri, 2016-10-21 at 13:45 +0200, Piotr Lewicki wrote:
> On 21.10.2016 13:26, Tanu Kaskinen wrote:
> > It looks like the default alsa device is configured to use card 0, but
> > card 0 doesn't exist. What do "cat /proc/asound/cards" and "ls -l
> > /dev/snd" print?
>
> root at raspberrypi3:~# cat /proc/asound/cards
> --- no soundcards ---
> root at raspberrypi3:~# ls -al /dev/snd/
> drwxr-xr-x 2 root root 60 Oct 21 09:53 .
> drwxr-xr-x 11 root root 13200 Oct 21 09:53 ..
> crw-rw---- 1 root audio 116, 33 Oct 21 09:53 timer
Weird, is snd-bcm2835 actually loaded?
I don't have oe on rpi myself, so if there's some extra step required
to make alsa work, I don't know about it.
I have raspbian on rpi2, and /boot/config.txt contains this, which
seems relevant, so you could check if you have it:
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
But if you have snd-bcm2835 already loaded, then I don't think this can
be the issue.
> I wonder what is used by omxplayer that it works, but alsa does not.
Yes, it seems to be some kind of witchcraft.
--
Tanu
More information about the yocto
mailing list