Ok after changing permissions on the device files I get the following:

cat testpcm1.wav > /dev/snd/pcmC0D0p
cat: write error: File descriptor in bad state

aplay still works...

-Brooke

> -----Original Message-----
> From: Wallace, Brooke 
> Sent: Wednesday, August 01, 2007 3:07 PM
> To: alsa-user@lists.sourceforge.net
> Subject: Sending data to alsa drivers directly
> 
> 
> Can someone explain to me why I cant just send data directory 
> the the ALSA devices? Are they not character devices?
> 
> % sudo cat testpcm1.wav > /dev/snd/pcmC0D0p
> /dev/snd/pcmC0D0p: Permission denied
> 
> Aplay works fine on this file. So what is aplay doing other 
> than just sending the file data to the device? 
> 
> Please forgive my ignorance, but I'm new to this and there is 
> not a lot of intro documentation. I've seen that with simple 
> char devices you can just read and write directly to the 
> driver... So I'm trying to understand why this does not work 
> with ALSA drivers.
> 
> -Brooke

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to