Re: Sending data to alsa drivers directly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 1 Aug 2007, Wallace, Brooke wrote:

> 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...

I assume that aplay sets up the device with its IOCTLs. An unsetup device
may well be in a bad state.

>
> -Brooke
>
>> -----Original Message-----
>> From: Wallace, Brooke
>> Sent: Wednesday, August 01, 2007 3:07 PM
>> To: alsa-user@xxxxxxxxxxxxxxxxxxxxx
>> 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@xxxxxxxxxxxxxxxxxxxxx
> https://lists.sourceforge.net/lists/listinfo/alsa-user
>

-- 
William G. Unruh   |  Canadian Institute for|     Tel: +1(604)822-3273
Physics&Astronomy  |     Advanced Research  |     Fax: +1(604)822-5324
UBC, Vancouver,BC  |   Program in Cosmology |     unruh@xxxxxxxxxxxxxx
Canada V6T 1Z1     |      and Gravity       |  www.theory.physics.ubc.ca/

-------------------------------------------------------------------------
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@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux