Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 157845
b: refs/heads/master
c: 4d8e22e
h: refs/heads/master
i:
  157843: bfb5978
v: v3
  • Loading branch information
Takashi Iwai committed Aug 11, 2009
1 parent 484fce4 commit 96a1ae3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 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: b59bdf3b0ca11bfc6a539012431d751deaa65b32
refs/heads/master: 4d8e22e0f6aacb365db2cb9bf69e38310b37f418
26 changes: 25 additions & 1 deletion trunk/sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -2299,6 +2299,30 @@ static void __devinit check_probe_mask(struct azx *chip, int dev)
}
}

/*
* white-list for enable_msi
*/
static struct snd_pci_quirk msi_white_list[] __devinitdata = {
SND_PCI_QUIRK(0x103c, 0x3607, "HP Compa CQ40", 1),
{}
};

static void __devinit check_msi(struct azx *chip)
{
const struct snd_pci_quirk *q;

chip->msi = enable_msi;
if (chip->msi)
return;
q = snd_pci_quirk_lookup(chip->pci, msi_white_list);
if (q) {
printk(KERN_INFO
"hda_intel: msi for device %04x:%04x set to %d\n",
q->subvendor, q->subdevice, q->value);
chip->msi = q->value;
}
}


/*
* constructor
Expand Down Expand Up @@ -2333,7 +2357,7 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci,
chip->pci = pci;
chip->irq = -1;
chip->driver_type = driver_type;
chip->msi = enable_msi;
check_msi(chip);
chip->dev_index = dev;
INIT_WORK(&chip->irq_pending_work, azx_irq_pending_work);

Expand Down

0 comments on commit 96a1ae3

Please sign in to comment.