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;