From: Russell King - ARM Linux Subject: Re: ALSA calling pcm_pointer excessively? Date: Fri, 11 May 2012 17:38:44 +0100 Message-ID: <20120511163844.GD16214@n2100.arm.linux.org.uk> References: <20120510160601.GC12727@n2100.arm.linux.org.uk> <20120510162930.GA17361@n2100.arm.linux.org.uk> <4FABF574.7090804@ladisch.de> <20120511140237.GB6220@n2100.arm.linux.org.uk> <20120511150450.GB16214@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from caramon.arm.linux.org.uk (caramon.arm.linux.org.uk [78.32.30.218]) by alsa0.perex.cz (Postfix) with ESMTP id 9BCC410476F for ; Fri, 11 May 2012 18:38:54 +0200 (CEST) Content-Disposition: inline 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: alsa-devel@alsa-project.org, Mark Brown , Clemens Ladisch List-Id: alsa-devel@alsa-project.org On Fri, May 11, 2012 at 06:31:53PM +0200, Takashi Iwai wrote: > At Fri, 11 May 2012 16:04:50 +0100, > Russell King - ARM Linux wrote: > > > > On Fri, May 11, 2012 at 04:17:50PM +0200, Takashi Iwai wrote: > > > Actually the call of snd_pcm_update_hw_ptr() at the loop entry doesn't > > > have to be done at each time, supposing the process of the loop > > > (without wait_for_avail()) is fast enough. > > > > > > How about the patch below? > > > > This too seems to work fine on playback. Thanks. > > Good to hear. I queued it for linux-next now. Please ensure that it gets: Tested-by: Russell King and not with this address. Thanks.