[alsa-devel] sound device is buzy to run pcm.c
Guilherme Raymo Longo
grlongo.ireland at gmail.com
Mon Jun 15 05:11:15 CEST 2009
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 at 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 at 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 at 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;
More information about the Alsa-devel
mailing list