From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH] cs46xx update SMP fixes Date: Fri, 23 Aug 2002 10:21:54 +0200 Sender: alsa-devel-admin@lists.sourceforge.net Message-ID: References: <3D64B60D.5070907@cucumelo.org> <3D64E811.30005@cucumelo.org> <3D64F173.509@cucumelo.org> <3D652BA1.8010600@cucumelo.org> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <3D652BA1.8010600@cucumelo.org> Errors-To: alsa-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: Benny Sjostrand Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Thu, 22 Aug 2002 20:21:21 +0200, Benny Sjostrand wrote: > > > > >how about to make the list of free scbs so that the free scb can be > >found without loop? also, doulbe linked lists would be more feasible > >for such frequent insert/deletion. > > > I dont known if I understand you, the SCB tree is already like a big > complex double linked > list. However they are stored in a array. yes, i figured out it later, too. sorry for confusion. > > > >but this may introduce the inconsistent status until the scheduled > >task is really called. > > > >i think the best way is to shorten the code path of trigger callback. > > > I agree that it may not be the best solution, I believe it can work but > will end up > in a dirty hack. basically trigger callback should be as short as possible, because it's called just at the time you want to "start" the playback. semaphore or schedule in trigger may cause unexpected long delay (except for the problem that it can be called by interrupt handlers). Takashi ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390