I need help with the sound on our appliance. We are compiling the kernel (2.6.32.4) with the alsa and the drivers configured as built -in.
when the kernel is starting it loads the driver (Intel HDA) and recognizes the sound card successfully (VIA VT82xx).
 
All the relevant devices appear (under /dev and under /proc). I can see IRQ 17 assigned to the sound.
However when trying to  play a sound I get an Invalid Argument error.
 
It seems that the ioctl commands on the device return EINVAL.
The dmesg command shows the following messages:
 
ALSA sound/core/oss/pcm_oss.c:871: No usable accesses
ALSA sound/core/oss/pcm_oss.c:871: No usable accesses
ALSA sound/pci/hda/hda_codec.c:1096: hda_codec_cleanup_stream: NID=0x10
ALSA sound/pci/hda/hda_codec.c:1096: hda_codec_cleanup_stream: NID=0x11
ALSA sound/pci/hda/hda_codec.c:1096: hda_codec_cleanup_stream: NID=0x12
ALSA sound/pci/hda/hda_codec.c:1096: hda_codec_cleanup_stream: NID=0x13
 
Does anybody have any idea what can be the problem?
 
Thanks