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

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.