Feature #213
closedVerify sound support is enabled in kernel
100%
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
Updated by Hammel over 11 years ago
- 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.
Updated by Hammel over 11 years ago
- % 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?
Updated by Hammel over 11 years ago
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).
Updated by Hammel about 11 years ago
- Target version changed from 1.0 - Atreides to 2.0 - Harkonnen
Updated by Hammel about 11 years ago
- 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
Updated by Hammel almost 11 years ago
- 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.