Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 342999
b: refs/heads/master
c: cc5ede3
h: refs/heads/master
i:
  342997: 5de3cfb
  342995: ea9a49f
  342991: 7388971
v: v3
  • Loading branch information
Takashi Iwai committed Dec 12, 2012
1 parent 19be532 commit 3b1c91d
Show file tree
Hide file tree
Showing 2 changed files with 13 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: fa348da53b6ffd3dcebae288d4072a4571755d35
refs/heads/master: cc5ede3efdf1c3777efdf92124e7572c1024a7f0
14 changes: 12 additions & 2 deletions trunk/sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,12 @@ static int azx_corb_send_cmd(struct hda_bus *bus, u32 val)
spin_lock_irq(&chip->reg_lock);

/* add command to corb */
wp = azx_readb(chip, CORBWP);
wp = azx_readw(chip, CORBWP);
if (wp == 0xffff) {
/* something wrong, controller likely turned to D3 */
spin_unlock_irq(&chip->reg_lock);
return -1;
}
wp++;
wp %= ICH6_MAX_CORB_ENTRIES;

Expand All @@ -821,7 +826,12 @@ static void azx_update_rirb(struct azx *chip)
unsigned int addr;
u32 res, res_ex;

wp = azx_readb(chip, RIRBWP);
wp = azx_readw(chip, RIRBWP);
if (wp == 0xffff) {
/* something wrong, controller likely turned to D3 */
return;
}

if (wp == chip->rirb.wp)
return;
chip->rirb.wp = wp;
Expand Down

0 comments on commit 3b1c91d

Please sign in to comment.