Skip to contentSkip to conversation

Porting ARM ALSA driver to 2.6.16 kernel

DISCUSSION Ross Wille 2 participants 2 messages Jun 14, 2006

lore
Share & tools
lore

Ross Wille

author
#0 lore raw

Hi,

I have an ALSA sound driver working on an ARM platform running on a 2.6.10 kernel. But when I ported this driver to the 2.6.16.19 kernel it does not work. The device nodes show up, but when I try to call any of the OSS-emulation ioctls (for example, SNDCTL_DSP_SETFMT) I get a -EINVAL return code from the ioctl call and a "No usable accesses" error gets printed to the console. (I do have OSS emulation enabled in the kernel.)

Has something changed with the kernel sound APIs between 2.6.10 and 2.6.16 that would cause this problem? I have reviewed the kernel ChangeLogs, but nothing pops out at me. Any suggestions would be appreciated.

Thanks,

-Ross

#1 lore raw
Quoted 10 lines · Ross Wille

Hi,

I have an ALSA sound driver working on an ARM platform running on a 2.6.10 kernel. But when I ported this driver to the 2.6.16.19 kernel it does not work. The device nodes show up, but when I try to call any of the OSS-emulation ioctls (for example, SNDCTL_DSP_SETFMT) I get a -EINVAL return code from the ioctl call and a "No usable accesses" error gets printed to the console. (I do have OSS emulation enabled in the kernel.)

The only problem I've experienced lately with ALSA on ARM is this gcc optimisation bug:-

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27363

This only applies to gcc 4.1.0 (it's fixed in 4.1.1) and caused the SNDRV_PCM_FORMAT_* refinement (in sound/core/pcm_native.c) to break.

A few things to also check:-

o Does aplay/arecord and alsamixer work (they don't use OSS
emulation) ?
o Does the Dummy driver work ?

HTH

Liam