burgundy: timeout message is off by one.
PATCH 1/1 burgundy: timeout message is off by one.
Timeout message is off by one.
Signed-off-by Roel Kluin <[email protected]>
---
sound/ppc/burgundy.c +2 -2
@@ -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" ); }
At Thu, 04 Jun 2009 01:53:21 +0200,
Quoted 4 lines · Roel Kluin
Timeout message is off by one.
Signed-off-by Roel Kluin <[email protected]>
Applied now. Thanks.
Takashi
Quoted 21 lines
---
sound/ppc/burgundy.c +2
-2@@ -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" ); }