From: Takashi Iwai Subject: Re: als4000: enable burst mode Date: Wed, 04 Aug 2010 21:31:32 +0200 Message-ID: References: <201008032357.06661.linux@rainbow-software.org> <201008042108.15858.linux@rainbow-software.org> 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 (cantor.suse.de [195.135.220.2]) by alsa0.perex.cz (Postfix) with ESMTP id 208962468D for ; Wed, 4 Aug 2010 21:31:33 +0200 (CEST) In-Reply-To: <201008042108.15858.linux@rainbow-software.org> 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: Ondrej Zary Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Wed, 4 Aug 2010 21:08:14 +0200, Ondrej Zary wrote: > > On Wednesday 04 August 2010 07:43:44 Takashi Iwai wrote: > > At Tue, 3 Aug 2010 23:57:05 +0200, > > > > Ondrej Zary wrote: > > > Enable burst mode to prevent dropouts during high PCI bus usage. > > > The card is useless in X without this because of dropouts when anything > > > moves on the screen (at least with PCI VGA card). Enabling this is also > > > recommended by the datasheet (page 48). > > > > > > Signed-off-by: Ondrej Zary > > > > Applied now. Thanks. > > My previous patch assumed that the DMA mode (represented by 3 lowest bits of > ALS4K_GCR99_DMA_EMULATION_CTRL register) is set to the default value 0. If > that's not the case, it might result in invalid mode to be set. This v2 patch > fixes this potential problem. > > Signed-off-by: Ondrej Zary As the previous patch was already applied, could you give the incremental change? thanks, Takashi > --- linux-2.6.35-rc2/sound/pci/als4000.c 2010-06-06 05:43:24.000000000 +0200 > +++ linux-2.6.35-rc3/sound/pci/als4000.c 2010-08-04 20:57:00.000000000 +0200 > @@ -763,9 +763,9 @@ static void snd_als4000_configure(struct > /* SPECS_PAGE: 39 */ > for (i = ALS4K_GCR91_DMA0_ADDR; i <= ALS4K_GCR96_DMA3_MODE_COUNT; ++i) > snd_als4k_gcr_write(chip, i, 0); > - > + /* enable burst mode to prevent dropouts during high PCI bus usage */ > snd_als4k_gcr_write(chip, ALS4K_GCR99_DMA_EMULATION_CTRL, > - snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL)); > + (snd_als4k_gcr_read(chip, ALS4K_GCR99_DMA_EMULATION_CTRL) & ~0x07) | 0x04); > spin_unlock_irq(&chip->reg_lock); > } > > > > -- > Ondrej Zary >