Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 206533
b: refs/heads/master
c: 8dfb0c7
h: refs/heads/master
i:
  206531: adbad93
v: v3
  • Loading branch information
Wan ZongShun authored and Mark Brown committed Jun 2, 2010
1 parent 86c1ca8 commit e9466ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 018334c045c95793ab58948fe1f63282459c4f8d
refs/heads/master: 8dfb0c78157e14387f49fa7ab425e65a93b2fee2
10 changes: 4 additions & 6 deletions trunk/sound/soc/nuc900/nuc900-ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ static unsigned short nuc900_ac97_read(struct snd_ac97 *ac97,
udelay(100);

/* polling the AC_R_FINISH */
val = AUDIO_READ(nuc900_audio->mmio + ACTL_ACCON);
val &= AC_R_FINISH;
while (!val && timeout--)
while (!(AUDIO_READ(nuc900_audio->mmio + ACTL_ACCON) & AC_R_FINISH)
&& timeout--)
mdelay(1);

if (!timeout) {
Expand Down Expand Up @@ -121,9 +120,8 @@ static void nuc900_ac97_write(struct snd_ac97 *ac97, unsigned short reg,
udelay(100);

/* polling the AC_W_FINISH */
tmp = AUDIO_READ(nuc900_audio->mmio + ACTL_ACCON);
tmp &= AC_W_FINISH;
while (tmp && timeout--)
while ((AUDIO_READ(nuc900_audio->mmio + ACTL_ACCON) & AC_W_FINISH)
&& timeout--)
mdelay(1);

if (!timeout)
Expand Down

0 comments on commit e9466ff

Please sign in to comment.