From: Takashi Iwai Subject: Re: Backported sbxfi driver (UNTESTED!) Date: Thu, 16 Oct 2008 12:03:45 +0200 Message-ID: References: <20081012165353.a084d158.baz@irc.msk.ru> <20081013165805.735bf06e.baz@irc.msk.ru> <48F35C4C.40307@gmail.com> <20081013232147.026f38c9.baz@irc.msk.ru> <20081015003531.6b96847e.baz@irc.msk.ru> <20081015122649.65b32ee4.baz@irc.msk.ru> <20081015225418.ff594f23.baz@irc.msk.ru> 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 (ns.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id B78E8103819 for ; Thu, 16 Oct 2008 12:04:37 +0200 (CEST) In-Reply-To: <20081015225418.ff594f23.baz@irc.msk.ru> 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: Alexey Bazhin Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 15 Oct 2008 22:54:18 +0400, Alexey Bazhin wrote: > > [ 376.405480] SBXFI: SET TIMER TICKS = 4096 ... > [ 376.490861] SBXFI: IRQ = 0x500 So this is twice as the expected period (4096/96000 = 42ms). How about the patch below? diff --git a/sound/pci/sbxfi/sbxfi.c b/sound/pci/sbxfi/sbxfi.c index d6b5b34..dbd23ae 100644 --- a/sound/pci/sbxfi/sbxfi.c +++ b/sound/pci/sbxfi/sbxfi.c @@ -100,7 +100,7 @@ enum { #define SBXFI_PAGE_SIZE 4096 #define SBXFI_MAX_BUFFER (SBXFI_TLB_PAGES * SBXFI_PAGE_SIZE) #define SBXFI_MAX_SRCS 128 /* 256 / 2 */ -#define SBXFI_TIMER_FREQ 96000 +#define SBXFI_TIMER_FREQ 48000 /* FIXME: which mask? */ /* #define SBXFI_DMA_MASK DMA_32BIT_MASK */ #define SBXFI_DMA_MASK DMA_28BIT_MASK Takashi