Re: [PATCH] snd-powermac: timeout reaches -1

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

 



At Wed, 25 Feb 2009 13:40:26 +0100,
Roel Kluin wrote:
> 
> If unsuccessful, timeout reaches -1 after the loop.
> 
> 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 f860d39..45a7629 100644
> --- a/sound/ppc/burgundy.c
> +++ b/sound/ppc/burgundy.c
> @@ -35,7 +35,7 @@ snd_pmac_burgundy_busy_wait(struct snd_pmac *chip)
>  	int timeout = 50;
>  	while ((in_le32(&chip->awacs->codec_ctrl) & MASK_NEWECMD) && timeout--)
>  		udelay(1);
> -	if (! timeout)
> +	if (timeout < 0)
>  		printk(KERN_DEBUG "burgundy_busy_wait: timeout\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