Re: [PATCH] burgundy: timeout message is off by one.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Thu, 04 Jun 2009 01:53:21 +0200,
Roel Kluin wrote:
> 
> Timeout message is off by one.
> 
> Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx>

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");
>  }
>  
> 
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux