Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29824
b: refs/heads/master
c: 5e37ed3
h: refs/heads/master
v: v3
  • Loading branch information
Domen Puncer authored and Linus Torvalds committed Jun 25, 2006
1 parent 99aa9cc commit eb6b652
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 7d93a1a53a72aa704a8fef6e0fb4f6c6cd6aa07a
refs/heads/master: 5e37ed37b1a70a65185736fbec543ca4ad64a673
7 changes: 5 additions & 2 deletions trunk/sound/oss/au1550_ac97.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,8 @@ rdcodec(struct ac97_codec *codec, u8 addr)
}
if (i == POLL_COUNT) {
err("rdcodec: read poll expired!");
return 0;
data = 0;
goto out;
}

/* wait for command done?
Expand All @@ -226,7 +227,8 @@ rdcodec(struct ac97_codec *codec, u8 addr)
}
if (i == POLL_COUNT) {
err("rdcodec: read cmdwait expired!");
return 0;
data = 0;
goto out;
}

data = au_readl(PSC_AC97CDC) & 0xffff;
Expand All @@ -237,6 +239,7 @@ rdcodec(struct ac97_codec *codec, u8 addr)
au_writel(PSC_AC97EVNT_CD, PSC_AC97EVNT);
au_sync();

out:
spin_unlock_irqrestore(&s->lock, flags);

return data;
Expand Down

0 comments on commit eb6b652

Please sign in to comment.