You are not logged in.

#1 2011-03-31 20:37:28

nesk
Member
Registered: 2011-03-31
Posts: 181

[SOLVED] ALSA: device or resource is busy

Hi,
I can't get media players to play audio through 1 of soundcards:
There's 2 soundcards: Juli@ and CMI8738 (for a headset).

Now for VLC:

$ vlc --aout alsa --alsa-audio-device=plughw:1,0 sample.avi

plays fine (sound goes through CMI8738), but:

$ vlc --aout alsa --alsa-audio-device=plughw:0,0 sample.avi
VLC media player 1.1.8 The Luggage (revision exported)
....
[0x96a17dc] alsa audio output error: unable to commit hardware configuration (Device or resource busy)
ALSA lib pcm_direct.c:980:(snd1_pcm_direct_initialize_slave) unable to install hw params
ALSA lib pcm_dmix.c:1030:(snd_pcm_dmix_open) unable to initialize slave

Same picture with mplayer.

*Sound through CMI8738 works fine
*Firefox picks up Juli@ as default and plays flash videos with audio output through it just fine

My setup:

$ cat /etc/modprobe.d/alsa.conf
options snd slots=snd-ice1724,snd-cmipci
$ cat /proc/asound/modules
 0 snd_ice1724
 1 snd_cmipci

Not using .asoundrc file. No JACK, Pulse or anything - pure alsa.
So far it's narrowing down to alsa "Device or resource busy" issue, but i can't figure out what is it busy with smile There's no other apps using alsa at the time of testing. I also tried to test right after reboot, still no luck.
Any help/search directions would be appreciated.

Last edited by nesk (2011-04-05 05:04:41)

Offline

#2 2011-04-03 17:38:09

nesk
Member
Registered: 2011-03-31
Posts: 181

Re: [SOLVED] ALSA: device or resource is busy

bump

Offline

#3 2011-04-03 17:41:48

d00maz
Member
Registered: 2009-11-08
Posts: 91

Re: [SOLVED] ALSA: device or resource is busy

You should stop using alsa and start using OSS. I've never had any issues with OSS.

Offline

#4 2011-04-03 17:54:15

nesk
Member
Registered: 2011-03-31
Posts: 181

Re: [SOLVED] ALSA: device or resource is busy

My card is not supported by OSS.
Also, i want to make alsa work smile

Offline

#5 2011-04-04 05:39:09

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [SOLVED] ALSA: device or resource is busy

nesk wrote:

Device or resource busy

Show the processes:

fuser -fv /dev/snd/* /dev/dsp*

Here's my ~/.asoundrc, for ideas.

Offline

#6 2011-04-05 05:04:13

nesk
Member
Registered: 2011-03-31
Posts: 181

Re: [SOLVED] ALSA: device or resource is busy

Thanks brebs,
Solved it with~$HOME/.asoundrc :

pcm_slave.slavej {
  pcm "hw:0"
  channels 2
  rate 44100
}
pcm.plugj {
  type plug
  slave slavej
}

Good read for those troubleshooting alsa:
http://www.volkerschatz.com/noise/alsa.html

Offline

#7 2017-06-08 14:48:09

chefarov
Member
Registered: 2017-06-08
Posts: 1

Re: [SOLVED] ALSA: device or resource is busy

nesk wrote:

Thanks brebs,
Solved it with~$HOME/.asoundrc :

pcm_slave.slavej {
  pcm "hw:0"
  channels 2
  rate 44100
}
pcm.plugj {
  type plug
  slave slavej
}

Good read for those troubleshooting alsa:
http://www.volkerschatz.com/noise/alsa.html

Worked for me. Thanks

Offline

#8 2017-06-08 14:51:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,707

Re: [SOLVED] ALSA: device or resource is busy

chefarov Nice to know that even after 6 years someone got some use out of the topic. However please be aware that necroposting, especially without any real new input, is frowned upon and might lead to a ban on further offenses.

You might want to familiarize yourself with our Code of Conduct

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.

Offline

Board footer

Powered by FluxBB