From: Takashi Iwai Subject: Re: ALSA calling pcm_pointer excessively? Date: Fri, 11 May 2012 18:31:53 +0200 Message-ID: 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 (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 D775F104763 for ; Fri, 11 May 2012 18:31:54 +0200 (CEST) In-Reply-To: <20120511150450.GB16214@n2100.arm.linux.org.uk> 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: Russell King - ARM Linux Cc: alsa-devel@alsa-project.org, Mark Brown , Clemens Ladisch List-Id: alsa-devel@alsa-project.org 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. thanks, Takashi