[alsa-devel] [PATCH 2/5] ALSA: snd-usb: implement new endpoint streaming model

Clemens Ladisch clemens at ladisch.de
Tue Dec 20 16:32:05 CET 2011

Takashi Iwai wrote:
> One point I'm not sure about this implementation is the use of
> tasklet.  The tasklet itself runs again in ep->lock, what's the
> rationale for it?  In other words, can't it be a straight function
> call?

This architecture was copied from ua101.c.  If I remember correctly,
the original reason for the tasklet was to avoid calling
snd_pcm_period_elapsed() from inside the lock.  This would not be
necessary in endpoint.c.


More information about the Alsa-devel mailing list