Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 92145
b: refs/heads/master
c: 2add9b9
h: refs/heads/master
i:
  92143: a2c0494
v: v3
  • Loading branch information
Takashi Iwai committed Apr 24, 2008
1 parent 2a080a3 commit b90c3a2
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: 86d34b7ec878ea4b4c9f33ce92f1722c4326dbe7
refs/heads/master: 2add9b925394746eff692ff0875d21ea2d5289e2
7 changes: 5 additions & 2 deletions trunk/sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,9 @@ static void azx_update_rirb(struct azx *chip)
if (res_ex & ICH6_RIRB_EX_UNSOL_EV)
snd_hda_queue_unsol_event(chip->bus, res, res_ex);
else if (chip->rirb.cmds) {
chip->rirb.cmds--;
chip->rirb.res = res;
smp_wmb();
chip->rirb.cmds--;
}
}
}
Expand All @@ -556,8 +557,10 @@ static unsigned int azx_rirb_get_response(struct hda_codec *codec)
azx_update_rirb(chip);
spin_unlock_irq(&chip->reg_lock);
}
if (!chip->rirb.cmds)
if (!chip->rirb.cmds) {
smp_rmb();
return chip->rirb.res; /* the last value */
}
if (time_after(jiffies, timeout))
break;
if (codec->bus->needs_damn_long_delay)
Expand Down

0 comments on commit b90c3a2

Please sign in to comment.