Feature #213
closed
Verify sound support is enabled in kernel
Added by Hammel over 11 years ago.
Updated almost 11 years ago.
Category:
04 - Root File System
Description
The kernel driver is snd-bcm2835. This is compiled as a loadable module, so needs to be loaded at boot time.
Also, tools to test sound are missing from buildroot's config:
- aplay
- speaker-test
- amixer
See eLinux RPi Sound info
- Status changed from New to In Progress
- % Done changed from 0 to 20
Enabled alsa utilities for testing sound in buildroot config. Changes tested in build and pushed upstream.
- % Done changed from 20 to 50
Sound seems to work if you load that module. I'm not quite sure how to load the module other than through an init script. I could write one, but shouldn't there be an /etc/modules.conf or similar? Maybe /etc/modprobe.conf or /etc/modprobe.d/*.conf?
The problem seems to be that the Busybox config enabled Simplified Modutils which doesn't use /etc/modules.conf. It can use /etc/modules/<module_name> but it's unclear how to use that at the moment. I'm still researching it.
Barring finding more info on the format of those module config files I'll have to write an init script to load the sound drivers. I could just add a section to S01mdev to handle it, which might be easier (just parse /etc/modules.conf, perhaps).
- Target version changed from 1.0 - Atreides to 2.0 - Harkonnen
- Priority changed from Urgent to Normal
- Priority changed from Normal to Urgent
- Target version changed from 2.0 - Harkonnen to 0.8.0
- Severity changed from 03 - Medium to 04 - Low
- Status changed from In Progress to Closed
- % Done changed from 50 to 100
Verified the sound drivers are being loaded with the recently added rc.modules init script (via S00dev).
Tested audio playback on PiBox 0.7.0 with
aplay classical-clip.wav
where the clip was a 35 second clip from the Jurassic Park Theme (from the soundtrack). I used Altec Lansign speakers (front left/right and woofer). The sound only came out of the woofer. So I tried it with headphones and it sounded fine though a little muffled. I suspect a better audio mixer would help, but for now this is fine. I at least know sound is working.
This issue can be closed.
Also available in: Atom
PDF