Skip to contentSkip to conversation

Alsa fails to open plug:surround51

DISCUSSION Karsten Jeppesen 3 participants 4 messages Jun 24, 2005 – Jun 30, 2005

lore
Share & tools
lore
#0 lore raw

Xine will open default to play the dvd menu (2.0). Then it will issue a snd_pcm_close for that stream

When it then tries to open plug:surround51 (for the movie) then this call fails with resource busy. What could be the reason?

Karsten

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

#1 lore raw
Quoted 5 lines · Karsten Jeppesen

Xine will open default to play the dvd menu (2.0). Then it will issue a snd_pcm_close for that stream

When it then tries to open plug:surround51 (for the movie) then this call fails with resource busy.

Which sound card?

Could you check with strace whether the device (/dev/snd/pcmCxDyp) really is closed?

Regards,
Clemens

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

#2 lore raw

At Fri, 24 Jun 2005 09:11:35 +0200 (METDST),

Quoted 5 lines · Clemens Ladisch
Quoted 3 lines · Karsten Jeppesen

Xine will open default to play the dvd menu (2.0). Then it will issue a snd_pcm_close for that stream

Quoted 7 lines
Quoted 2 lines

When it then tries to open plug:surround51 (for the movie) then this call fails with resource busy.

Which sound card?

Could you check with strace whether the device (/dev/snd/pcmCxDyp) really is closed?

A known problem with dmix. It's a race between the dmix server process and reopening process.

A workaround would be to take a short sleep (or polling of resource release) at closing a dmix stream... But anyway it's tricky.

Takashi

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click

#3 lore raw
Quoted 21 lines · Takashi Iwai

At Fri, 24 Jun 2005 09:11:35 +0200 (METDST),

Quoted 6 lines · Clemens Ladisch
Quoted 3 lines · Karsten Jeppesen

Xine will open default to play the dvd menu (2.0). Then it will issue a snd_pcm_close for that stream

Quoted 10 lines
Quoted 4 lines

When it then tries to open plug:surround51 (for the movie) then this call fails with resource busy.

Which sound card?

Could you check with strace whether the device (/dev/snd/pcmCxDyp) really is closed?

Quoted 7 lines

A known problem with dmix. It's a race between the dmix server process and reopening process.

A workaround would be to take a short sleep (or polling of resource release) at closing a dmix stream... But anyway it's tricky.

What I ended up doing in Xine is just that. Sleeping a second and then try again. Thanks both of you. (Soundcard is an ALC650 builtin on an ABIT NF7-S, using analog outputs)

Karsten

-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click