From mboxrd@z Thu Jan 1 00:00:00 1970 From: Clemens Ladisch Subject: Re: [PATCH 2/5] ALSA: snd-usb: implement new endpoint streaming model Date: Tue, 20 Dec 2011 16:32:05 +0100 Message-ID: <4EF0AA75.10404@ladisch.de> References: <1324374520-32332-1-git-send-email-zonque@gmail.com> <1324374520-32332-3-git-send-email-zonque@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out5.smtp.messagingengine.com (out5.smtp.messagingengine.com [66.111.4.29]) by alsa0.perex.cz (Postfix) with ESMTP id 176F5103B5F for ; Tue, 20 Dec 2011 16:32:29 +0100 (CET) Received: from compute3.internal (compute3.nyi.mail.srv.osa [10.202.2.43]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 87AA221490 for ; Tue, 20 Dec 2011 10:32:27 -0500 (EST) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Takashi Iwai Cc: linuxaudio@showlabor.de, blablack@gmail.com, alsa-devel@alsa-project.org, gdiffey@gmail.com, Daniel Mack List-Id: alsa-devel@alsa-project.org 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. Regards, Clemens