Skip to content

Commit

Permalink
ALSA: hda - Enable MSI as default
Browse files Browse the repository at this point in the history
Since the recent kernel can handle MSI properly on non-Intel platforms,
let's enable MSI as default.

If any borken device is found, we can add the quirk entry to the list,
which is currently empty.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Sep 28, 2009
1 parent 08d7a25 commit 7162385
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static int bdl_pos_adj[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1};
static int probe_mask[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS-1)] = -1};
static int probe_only[SNDRV_CARDS];
static int single_cmd;
static int enable_msi;
static int enable_msi = -1;
#ifdef CONFIG_SND_HDA_PATCH_LOADER
static char *patch[SNDRV_CARDS];
#endif
Expand Down Expand Up @@ -2300,22 +2300,22 @@ static void __devinit check_probe_mask(struct azx *chip, int dev)
}

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

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

chip->msi = enable_msi;
if (chip->msi)
if (enable_msi >= 0) {
chip->msi = !!enable_msi;
return;
q = snd_pci_quirk_lookup(chip->pci, msi_white_list);
}
chip->msi = 1; /* enable MSI as default */
q = snd_pci_quirk_lookup(chip->pci, msi_black_list);
if (q) {
printk(KERN_INFO
"hda_intel: msi for device %04x:%04x set to %d\n",
Expand Down

0 comments on commit 7162385

Please sign in to comment.