From: Takashi Iwai Subject: Re: [PATCH 8/9] ALSA: compress: call pointer callback and updates under a lock Date: Tue, 27 Aug 2013 13:03:17 +0200 Message-ID: References: <1377585639-29516-1-git-send-email-vinod.koul@intel.com> <1377585639-29516-9-git-send-email-vinod.koul@intel.com> <20130827094859.GW2748@intel.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 6A3FF2650F8 for ; Tue, 27 Aug 2013 13:01:35 +0200 (CEST) In-Reply-To: <20130827094859.GW2748@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Vinod Koul Cc: alsa-devel@alsa-project.org, broonie@kernel.org, lgirdwood@gmail.com List-Id: alsa-devel@alsa-project.org At Tue, 27 Aug 2013 15:18:59 +0530, Vinod Koul wrote: > > On Tue, Aug 27, 2013 at 12:31:33PM +0200, Takashi Iwai wrote: > > At Tue, 27 Aug 2013 12:10:38 +0530, > > Vinod Koul wrote: > > > > > > to prevent racy claculations as multiple threads can invoke and update values > > > > Why a new lock? Can't it be the same lock? > Pointer query and updates IMO should be independent of the trigger ops. I dont > see a reason why we should blcok pointers while we are pausing... What happens if the trigger or reset is called during your taking the timestamp? Takashi