From: Takashi Iwai Subject: Re: alsa and locking Date: Fri, 19 May 2006 18:21:32 +0200 Message-ID: References: <1148055062.6228.19.camel@johannes.berg> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Return-path: In-Reply-To: <1148055062.6228.19.camel@johannes.berg> 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: Johannes Berg Cc: alsa-devel@lists.sourceforge.net List-Id: alsa-devel@alsa-project.org At Fri, 19 May 2006 18:11:02 +0200, Johannes Berg wrote: > > I was looking into locking a bit but can't figure out what alsa already > locks and where I need my own locks. Any document detailing what must be > done and what is already locked? Some descriptions are found in the atomicity section of my tutorial. All control callbacks are not protected, except for rwsem against addition/removal of elements. The PCM trigger, pointer and ack callbacks shall be atomic, where protected with spinlock and irq disabled. Other PCM callbacks are not protected but for open mutex. Takashi ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642