From: Takashi Iwai Subject: Re: [PATCH] burgundy: timeout message is off by one. Date: Thu, 04 Jun 2009 00:11:35 +0200 Message-ID: References: <4A270CF1.4030902@gmail.com> 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 5F9401038E5 for ; Thu, 4 Jun 2009 00:11:38 +0200 (CEST) In-Reply-To: <4A270CF1.4030902@gmail.com> 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: Roel Kluin Cc: alsa-devel@alsa-project.org, Andrew Morton List-Id: alsa-devel@alsa-project.org At Thu, 04 Jun 2009 01:53:21 +0200, Roel Kluin wrote: > > Timeout message is off by one. > > Signed-off-by: Roel Kluin Applied now. Thanks. Takashi > --- > diff --git a/sound/ppc/burgundy.c b/sound/ppc/burgundy.c > index 45a7629..d2c0a4e 100644 > --- a/sound/ppc/burgundy.c > +++ b/sound/ppc/burgundy.c > @@ -46,12 +46,12 @@ snd_pmac_burgundy_extend_wait(struct snd_pmac *chip) > timeout = 50; > while (!(in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) > udelay(1); > - if (! timeout) > + if (timeout < 0) > printk(KERN_DEBUG "burgundy_extend_wait: timeout #1\n"); > timeout = 50; > while ((in_le32(&chip->awacs->codec_stat) & MASK_EXTEND) && timeout--) > udelay(1); > - if (! timeout) > + if (timeout < 0) > printk(KERN_DEBUG "burgundy_extend_wait: timeout #2\n"); > } > >