[alsa-devel] sound device is buzy to run pcm.c
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;
On Sun, Jun 14, 2009 at 11:11 PM, Guilherme Raymo Longogrlongo.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
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 Longogrlongo.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
participants (3)
-
Guilherme
-
Guilherme Raymo Longo
-
Lee Revell