At Thu, 13 May 2004 20:57:51 +0200,
Giuliano Pochini wrote:
> 
> 
> On Mon, 10 May 2004 17:08:49 +0200
> Takashi Iwai <[EMAIL PROTECTED]> wrote:
> 
> > prepare and trigger callbacks are already in irq-disabled.
> > i.e. you need only spin_lock() in them.
> 
> Does it mean that ALSA acquires the lock only when it calls PCM callbacks,
> that is trigger(), etc., are atomic only wrt other PCM functions ?

sorry i don't understand your question.

the prepare and the trigger callbacks acquire several locks.
first, the global rw_lock for the pcm linking (snd_pcm_link_rwlock),
the group lock the substream belongs to, and the lock for the
substream itself.  and the first lock/unlock is done with *_irq().


> hdsp.c and rme9652.x use spin_*lock_irq() inside prepare().

oh, it's wrong.  fixed on cvs now.


thanks,

Takashi


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to