From: Takashi Iwai Subject: Re: Still have choppy audio using 1.0.17 Date: Wed, 25 Jun 2008 18:06:02 +0200 Message-ID: References: <4856C768.1060404@tet.com.br> <485952C5.30307@tet.com.br> <485965B0.9020102@tet.com.br> <485A58A1.6040002@tet.com.br> <48622AF1.3000304@tet.com.br> 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 mx1.suse.de (mx1.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id DC5DD243AD for ; Wed, 25 Jun 2008 18:06:04 +0200 (CEST) In-Reply-To: <48622AF1.3000304@tet.com.br> 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: Gustavo da Silva Serra Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 25 Jun 2008 08:24:33 -0300, Gustavo da Silva Serra wrote: > > If I keep the difference between the playback and capture pointers at > one period, no choppy audio occurs. If the difference is 0, 2 or 5 > periods for example, choppy audio will always occur. Any ideas why? Through a quick look at the code, it's likely the problem of the timing of timer handlers for playback/capture streams. In the current code, the timer handlers are invoked individually. One possible fix would be to force to synchronize the updates of both directions instead of individual timers. That is, share the same timer for the connected streams so that the update order is guaranteed. Just my $0.02. Takashi