All of lore.kernel.org
 help / color / mirror / Atom feed
* sound device is buzy to run pcm.c
@ 2009-06-15  3:11 Guilherme Raymo Longo
  2009-06-17  2:44 ` Lee Revell
  0 siblings, 1 reply; 3+ messages in thread
From: Guilherme Raymo Longo @ 2009-06-15  3:11 UTC (permalink / raw)
  To: Alsa-devel

I am getting this problem when running the pcm.c demo program at
http://alsa-project.org/alsa-doc/alsa-lib/_2test_2pcm_8c-example.html


This is the execution of the program:

guilherme@lap:/home/guilherme/Experimentos# ./PCM
Playback device is plughw:0,0
Stream parameters are 44100Hz, S16_LE, 1 channels
sine wave rate is 0 0.0000Hz
Using transfer method: write
Playback open error: Device or resource busy


I tried to check if the device is really buzy:

root@lap:/home/guilherme/Experimentos# lsof |grep snd
lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system */
home/guilherme/*.gvfs
     Output information may be incomplete.
esd       5433  guilherme  mem       CHR     116,16                6947
/dev/snd/pcmC0D0p
esd       5433  guilherme    5r          CHR     116,33                6787
/dev/snd/timer
esd       5433  guilherme    6w        CHR     116,16                6947
/dev/snd/pcmC0D0p
esd       5433  guilherme    7r         CHR      116,0                  6987
/dev/snd/controlC0

and it seems to be ok.

That's my card

root@lap:/home/guilherme/Experimentos# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: SB [HDA ATI SB], device 0: ALC883 Analog [ALC883 Analog]
 Subdevices: 0/1
 Subdevice #0: subdevice #0

Is there a way to free the device or smth is wrong with my code??
I am using slackware 12.2 kernel 2.6


Great Regads;

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sound device is buzy to run pcm.c
  2009-06-15  3:11 sound device is buzy to run pcm.c Guilherme Raymo Longo
@ 2009-06-17  2:44 ` Lee Revell
  2009-06-17 14:59   ` Guilherme
  0 siblings, 1 reply; 3+ messages in thread
From: Lee Revell @ 2009-06-17  2:44 UTC (permalink / raw)
  To: Guilherme Raymo Longo; +Cc: Alsa-devel

On Sun, Jun 14, 2009 at 11:11 PM, Guilherme Raymo
Longo<grlongo.ireland@gmail.com> wrote:
> I tried to check if the device is really buzy:
>
> root@lap:/home/guilherme/Experimentos# lsof |grep snd
> lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system */
> home/guilherme/*.gvfs
>     Output information may be incomplete.
> esd       5433  guilherme  mem       CHR     116,16                6947
> /dev/snd/pcmC0D0p
> esd       5433  guilherme    5r          CHR     116,33                6787
> /dev/snd/timer
> esd       5433  guilherme    6w        CHR     116,16                6947
> /dev/snd/pcmC0D0p
> esd       5433  guilherme    7r         CHR      116,0                  6987
> /dev/snd/controlC0
>
> and it seems to be ok.

Of course it's busy, esd has it open.

Lee

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sound device is buzy to run pcm.c
  2009-06-17  2:44 ` Lee Revell
@ 2009-06-17 14:59   ` Guilherme
  0 siblings, 0 replies; 3+ messages in thread
From: Guilherme @ 2009-06-17 14:59 UTC (permalink / raw)
  To: Lee Revell, alsa-devel

Lee, I noticed that and I killed the process.

After I have it killed, the program gimme segfault.....!

;O( Ill check it in another machine to see what happens!

Tks!

-------------------

Guilherme Longo
Dept. Eng. da Computação
Unaerp

Linux User - #484927

*Before Asking
http://www.istf.com.br/?page=perguntas

!- I'd rather die on my feet than live on my knees -!



Lee Revell wrote:
> On Sun, Jun 14, 2009 at 11:11 PM, Guilherme Raymo
> Longo<grlongo.ireland@gmail.com> wrote:
>   
>> I tried to check if the device is really buzy:
>>
>> root@lap:/home/guilherme/Experimentos# lsof |grep snd
>> lsof: WARNING: can't stat() fuse.gvfs-fuse-daemon file system */
>> home/guilherme/*.gvfs
>>     Output information may be incomplete.
>> esd       5433  guilherme  mem       CHR     116,16                6947
>> /dev/snd/pcmC0D0p
>> esd       5433  guilherme    5r          CHR     116,33                6787
>> /dev/snd/timer
>> esd       5433  guilherme    6w        CHR     116,16                6947
>> /dev/snd/pcmC0D0p
>> esd       5433  guilherme    7r         CHR      116,0                  6987
>> /dev/snd/controlC0
>>
>> and it seems to be ok.
>>     
>
> Of course it's busy, esd has it open.
>
> Lee
>
>   

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-06-17 14:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-15  3:11 sound device is buzy to run pcm.c Guilherme Raymo Longo
2009-06-17  2:44 ` Lee Revell
2009-06-17 14:59   ` Guilherme

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.