Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156381
b: refs/heads/master
c: feb2734
h: refs/heads/master
i:
  156379: 0242672
v: v3
  • Loading branch information
Wu Fengguang authored and Takashi Iwai committed Aug 3, 2009
1 parent c3d0bc5 commit 8e96983
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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: c32649feb4573b31f0a2bfdf35cbe1351256c764
refs/heads/master: feb273404f15d86098cb0e81e46330d5c1e22b1b
11 changes: 6 additions & 5 deletions trunk/sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ struct azx {
unsigned int probing :1; /* codec probing phase */

/* for debugging */
unsigned int last_cmd; /* last issued command (to sync) */
unsigned int last_cmd[AZX_MAX_CODECS];

/* for pending irqs */
struct work_struct irq_pending_work;
Expand Down Expand Up @@ -668,7 +668,8 @@ static unsigned int azx_rirb_get_response(struct hda_bus *bus,

if (chip->msi) {
snd_printk(KERN_WARNING SFX "No response from codec, "
"disabling MSI: last cmd=0x%08x\n", chip->last_cmd);
"disabling MSI: last cmd=0x%08x\n",
chip->last_cmd[addr]);
free_irq(chip->irq, chip);
chip->irq = -1;
pci_disable_msi(chip->pci);
Expand All @@ -683,7 +684,7 @@ static unsigned int azx_rirb_get_response(struct hda_bus *bus,
if (!chip->polling_mode) {
snd_printk(KERN_WARNING SFX "azx_get_response timeout, "
"switching to polling mode: last cmd=0x%08x\n",
chip->last_cmd);
chip->last_cmd[addr]);
chip->polling_mode = 1;
goto again;
}
Expand All @@ -707,7 +708,7 @@ static unsigned int azx_rirb_get_response(struct hda_bus *bus,

snd_printk(KERN_ERR "hda_intel: azx_get_response timeout, "
"switching to single_cmd mode: last cmd=0x%08x\n",
chip->last_cmd);
chip->last_cmd[addr]);
chip->single_cmd = 1;
bus->response_reset = 0;
/* re-initialize CORB/RIRB */
Expand Down Expand Up @@ -794,7 +795,7 @@ static int azx_send_cmd(struct hda_bus *bus, unsigned int val)
{
struct azx *chip = bus->private_data;

chip->last_cmd = val;
chip->last_cmd[azx_command_addr(val)] = val;
if (chip->single_cmd)
return azx_single_send_cmd(bus, val);
else
Expand Down

0 comments on commit 8e96983

Please sign in to comment.