All of lore.kernel.org
 help / color / mirror / Atom feed
* Alsa fails to open plug:surround51
@ 2005-06-24  2:50 Karsten Jeppesen
  2005-06-24  7:11 ` Clemens Ladisch
  0 siblings, 1 reply; 4+ messages in thread
From: Karsten Jeppesen @ 2005-06-24  2:50 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Alsa fails to open plug:surround51
  2005-06-24  2:50 Alsa fails to open plug:surround51 Karsten Jeppesen
@ 2005-06-24  7:11 ` Clemens Ladisch
  2005-06-30 14:20   ` Takashi Iwai
  0 siblings, 1 reply; 4+ messages in thread
From: Clemens Ladisch @ 2005-06-24  7:11 UTC (permalink / raw)
  To: Karsten Jeppesen; +Cc: alsa-devel

Karsten Jeppesen wrote:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Alsa fails to open plug:surround51
  2005-06-24  7:11 ` Clemens Ladisch
@ 2005-06-30 14:20   ` Takashi Iwai
  2005-06-30 21:45     ` Karsten Jeppesen
  0 siblings, 1 reply; 4+ messages in thread
From: Takashi Iwai @ 2005-06-30 14:20 UTC (permalink / raw)
  To: Clemens Ladisch; +Cc: Karsten Jeppesen, alsa-devel

At Fri, 24 Jun 2005 09:11:35 +0200 (METDST),
Clemens Ladisch wrote:
> 
> Karsten Jeppesen wrote:
> > 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?

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Alsa fails to open plug:surround51
  2005-06-30 14:20   ` Takashi Iwai
@ 2005-06-30 21:45     ` Karsten Jeppesen
  0 siblings, 0 replies; 4+ messages in thread
From: Karsten Jeppesen @ 2005-06-30 21:45 UTC (permalink / raw)
  To: alsa-devel



Takashi Iwai wrote:

>At Fri, 24 Jun 2005 09:11:35 +0200 (METDST),
>Clemens Ladisch wrote:
>  
>
>>Karsten Jeppesen wrote:
>>    
>>
>>>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?
>>    
>>
>
>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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-06-30 21:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-24  2:50 Alsa fails to open plug:surround51 Karsten Jeppesen
2005-06-24  7:11 ` Clemens Ladisch
2005-06-30 14:20   ` Takashi Iwai
2005-06-30 21:45     ` Karsten Jeppesen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.