Re: alsa and locking

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2006-05-19 at 18:21 +0200, Takashi Iwai wrote:

> Some descriptions are found in the atomicity section of my tutorial.

Yes, I've seen that. Rather vague though.

> All control callbacks are not protected, except for rwsem against
> addition/removal of elements.

Alright, so it's possible that a user actually changes two controls at
the same time. IOW I have to protect against that.

> 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.

Right. What about prepare and all the other pcm stuff? Can it race
against the same when two apps open capture/playback etc?

johannes

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux