From: Takashi Iwai Subject: Re: [PATCH] sparc dbri: recording is back Date: Wed, 23 Aug 2006 20:16:47 +0200 Message-ID: References: <44ec9a1bf3034@wp.pl> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <44ec9a1bf3034@wp.pl> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@lists.sourceforge.net Errors-To: alsa-devel-bounces@lists.sourceforge.net To: Krzysztof Helt Cc: alsa-devel List-Id: alsa-devel@alsa-project.org At Wed, 23 Aug 2006 20:10:35 +0200, Krzysztof Helt wrote: > > @@ -2159,7 +2139,7 @@ static snd_pcm_uframes_t snd_dbri_pointe > snd_pcm_uframes_t ret; > > ret = bytes_to_frames(substream->runtime, info->offset) > - % substream->runtime->buffer_size; >+ % (substream->runtime->buffer_size + 1); > dprintk(D_USR, "I/O pointer: %ld frames of %ld.\n", > ret, substream->runtime->buffer_size); > return ret; What is the reason of this change? The original code looks OK to me. The pointer callback must return a value between 0 and (buffer_size-1). Takashi ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642