Adrian McMenamin wrote:
On Saturday 30 August 2003 20:14, James Courtier-Dutton wrote:
Adrian McMenamin wrote:
I am writing a PCM driver for the AICA device on the Sega Dreamcast for a
2.6.0-testX kernel.
The driver is far from complete, but I am having various problems when I
test bits of it...
A simple write of a file gives me this...
/dev/snd # cat /test.txt > pcmC0D0p
ALSA sound/sh/aica.c:165: In snd_aica_playback_open
ALSA sound/sh/aica.c:80: Disabling AICA device
ALSA sound/sh/aica.c:66: Enabling AICA device
cat: write: File descriptor in bad state
The three snd_printk messages are just what I would expect but I am not
sure why I get the message about the file descriptor.
Why don't you do instead: -
aplay test.txt
Is aplay a system call?
All I get is this...
/dev/snd # aplay /test.txt
aplay: No such file or directory
Incidentally, the mini-HOWTO on the site says this:
Now you are ready to put any soundfile you want into the PCM device of the
first card. So try to cat any textfile (any file) to /dev/snd/pcmC0D0, like
this: cat <filename> > /dev/snd/pcmC0D0.
Thanks for the help anyway :)
Adrian
Have you installed alsa correctly?
alsa-driver, (Kernel modules like the one you are developing)
alsa-lib, (the alsa api.)
alsa-utils, (the one with aplay in it.)
alsa-tools (other useful tools.)
alsa-oss (if you want oss emulation in userland.)
Cheers
James
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel