You are not logged in.

#1 2009-09-08 18:30:56

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

alsa upgrade: sound only from one app [Solved]

Hello,
after upgrade to alsa 1.0.21 only one application can play sound. E.g. if MPD (using ALSA output) plays then any ather application (mplayer for example) cannot. Here's mplayer output:

[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[AO_ALSA] alsa-lib: conf.c:4626:(snd_config_expand) Expand error (walk): File exists
[AO_ALSA] alsa-lib: pcm_hw.c:1325:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy
[AO_ALSA] Playback open error: Device or resource busy
[JACK] cannot open server
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: conf.c:4626:(snd_config_expand) Expand error (walk): File exists
[AO_ALSA] alsa-lib: pcm_hw.c:1325:(snd_pcm_hw_open) open /dev/snd/pcmC0D0p failed: Device or resource busy

I've downloaded and compiled older alsa-{lib,utils} 1.0.20 from ABS. Now's everything fine.

Last edited by cinan (2009-09-10 12:15:52)

Offline

#2 2009-09-08 20:21:36

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: alsa upgrade: sound only from one app [Solved]

I've got the same error after upgrading.
I figured out that the programs doesn't use PCM as device but use the play device (Front for me) directly.

Offline

#3 2009-09-08 22:23:01

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: alsa upgrade: sound only from one app [Solved]

Same for me smile.
I belive it's better not ot delete old packages from /var/cache/pacman/pkg/ as quick as possible.
Using
pacman -U /var/cache/pacman/pkg/some.application.pkg.tar.gz
is much faster than using abs, or... waiting for newer version which will work (i've heard about that cases in yesterday news)

Edit: Im using kernel 2.6.30.5-1, Realtek ALC888 (integra)

Last edited by Vi0L0 (2009-09-08 22:27:59)

Offline

#4 2009-09-08 22:59:55

b4283
Member
Registered: 2008-11-26
Posts: 121

Re: alsa upgrade: sound only from one app [Solved]

I have this too,
mostly where it said CONF.C: Expand error: File exists. & Resource busy.

Besides this, I don't know why my flash just stopped working with other sound programs.
Even I downgraded to alsa-lib 1.0.20, flash still took control of the device everytime I play one.
Just before upgrade, I could do all that...

Offline

#5 2009-09-09 11:29:25

Vi0L0
Member
From: Poland
Registered: 2009-06-24
Posts: 1,349
Website

Re: alsa upgrade: sound only from one app [Solved]

b4283 wrote:

Besides this, I don't know why my flash just stopped working with other sound programs.
Even I downgraded to alsa-lib 1.0.20, flash still took control of the device everytime I play one.
Just before upgrade, I could do all that...

Are u shure u r not using some 32 bit flashplugin on your 64bit Arch? Like nspluginwrapper-flash for example. If so - downgrade your lib32-alsa-lib too

Offline

#6 2009-09-09 11:48:41

b4283
Member
Registered: 2008-11-26
Posts: 121

Re: alsa upgrade: sound only from one app [Solved]

Woot! I can't believe I missed lib32-alsa !
It worked. Thx Vi0L0.

Offline

#7 2009-09-09 18:12:50

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: alsa upgrade: sound only from one app [Solved]

I'm just out of luck, I recently cleared my package cache because I ran out of disk space. I seem to remember there was a script which would automatically list old packages that are archived and install them to downgrade. I can't seem to find it.

Offline

#8 2009-09-09 18:13:31

shaurz
Member
Registered: 2004-02-02
Posts: 358

Re: alsa upgrade: sound only from one app [Solved]

Aha, found it in /root

Offline

#9 2009-09-09 18:16:06

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: alsa upgrade: sound only from one app [Solved]

FWIW, on my laptop (32-bit) I upgraded to alsa 1.0.21, but I can play flash and vlc stuff at the same time. I'll try on my 64-bit macine at home as soon as I can.


Matt

"It is very difficult to educate the educated."

Offline

#10 2009-09-09 19:03:56

PierreR
Member
Registered: 2008-11-10
Posts: 58

Re: alsa upgrade: sound only from one app [Solved]

I have tried with no luck to mess with the config files (modprobe.conf).

So I 've ended up downgrading alsa-lib and alsa-utils to get the sound back (which is quite easy thanks to pacman cache)

Offline

#11 2009-09-09 19:10:52

Nagian
Member
From: Altach, Austria
Registered: 2009-08-03
Posts: 70

Re: alsa upgrade: sound only from one app [Solved]

I also had to downgrade these packages...

I also have a laptop with 32 bit, so it's not because of the architecture... I am using snd-hda-intel, maybe that's the reason... What do the others have for sound card modules?

Last edited by Nagian (2009-09-09 19:12:28)

Offline

#12 2009-09-09 19:24:31

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: alsa upgrade: sound only from one app [Solved]

Nagian wrote:

I also had to downgrade these packages...

I also have a laptop with 32 bit, so it's not because of the architecture... I am using snd-hda-intel, maybe that's the reason... What do the others have for sound card modules?

me too, 32bit & snd-hda-intel.
Where exactly is the problem? In alsa or kernel or snd-hda-intel module? sad

Offline

#13 2009-09-10 00:14:06

theapodan
Member
From: Virginia, USA
Registered: 2008-10-21
Posts: 116

Re: alsa upgrade: sound only from one app [Solved]

I don't know if this will do any good, but you might try renaming /etc/asound.state, restarting alsa, and run alsactl store to let alsa recreate it.

Offline

#14 2009-09-10 00:27:29

mrunion
Member
From: Jonesborough, TN
Registered: 2007-01-26
Posts: 1,938
Website

Re: alsa upgrade: sound only from one app [Solved]

OK, got home, upgraded the 64-bit machine to 1.0.21 and rebooted. I got sound from both youtube.com and vlc at the same time. Is there any info you may want from me to help with this problem?


Matt

"It is very difficult to educate the educated."

Offline

#15 2009-09-10 09:23:34

Nagian
Member
From: Altach, Austria
Registered: 2009-08-03
Posts: 70

Re: alsa upgrade: sound only from one app [Solved]

mrunion wrote:

OK, got home, upgraded the 64-bit machine to 1.0.21 and rebooted. I got sound from both youtube.com and vlc at the same time. Is there any info you may want from me to help with this problem?

Do you use snd-hda-intel? I suppose there is the problem...

Offline

#16 2009-09-10 12:00:15

draugdel
Member
Registered: 2008-08-12
Posts: 44

Re: alsa upgrade: sound only from one app [Solved]

Fixed for me with alsa-lib 1.0.21.a-1.

Offline

#17 2009-09-10 12:15:36

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: alsa upgrade: sound only from one app [Solved]

second that, fixed with alsa-lib 1.0.21.a

Offline

#18 2009-09-10 12:17:50

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: alsa upgrade: sound only from one app [Solved]

For me too.

Offline

#19 2009-09-10 16:45:24

ChemBro
Member
Registered: 2008-10-22
Posts: 703

Re: alsa upgrade: sound only from one app [Solved]

Me too. I'm glad it was only one day (or two?). Nice super fast support.

Offline

#20 2009-09-11 13:06:56

monofluor
Member
Registered: 2009-09-11
Posts: 4

Re: alsa upgrade: sound only from one app [Solved]

For mi its not working again... 
I've updated alsa-lib + a kernel update.... every things go fine until reboot, the i have the same problem.

Offline

#21 2009-09-12 13:32:00

cinan
Member
From: Slovakia
Registered: 2008-07-04
Posts: 251
Website

Re: alsa upgrade: sound only from one app [Solved]

It seems to be kernel26-related issue. I didn't upgrade to the newest .30.6, I'm waiting for .31. You could try downgrade kernel or alsa.

Offline

#22 2009-09-13 01:38:31

monofluor
Member
Registered: 2009-09-11
Posts: 4

Re: alsa upgrade: sound only from one app [Solved]

cinan wrote:

It seems to be kernel26-related issue. I didn't upgrade to the newest .30.6, I'm waiting for .31. You could try downgrade kernel or alsa.

finally resolved, seems to be the sound was blocked for one aplication. I closed all and restart and voila. Thanks

Offline

#23 2009-09-15 13:19:15

simkin
Member
Registered: 2009-09-15
Posts: 2

Re: alsa upgrade: sound only from one app [Solved]

In my case, I solved it removing the pulseaudio server and related stuff.
After restarting, more than one app could use the sound device again.

Offline

#24 2009-09-18 20:23:56

_will
Member
Registered: 2004-07-08
Posts: 123

Re: alsa upgrade: sound only from one app [Solved]

I had a similar issue with MPD blocking sound on ac97. Commenting out optional decelerations under audio_output in /etc/mpd.conf fixed it.

/etc/mpd.conf wrote:

audio_output {
        type            "alsa"
        name            "My ALSA Device"
        #device         "hw:0,0"        # optional
        #format         "44100:16:2"    # optional
        #mixer_device   "default"       # optional
        mixer_control   "PCM"           # optional
        #mixer_index    "0"             # optional
}

Offline

Board footer

Powered by FluxBB