From: Takashi Iwai Subject: Re: Alsa fails to open plug:surround51 Date: Thu, 30 Jun 2005 16:20:26 +0200 Message-ID: References: <42BB74E8.4030006@jeppesens.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Clemens Ladisch Cc: Karsten Jeppesen , alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org 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