Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47208
b: refs/heads/master
c: 3372a15
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Feb 9, 2007
1 parent 75e759b commit 3c10a5e
Show file tree
Hide file tree
Showing 2 changed files with 28 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: 0981a260a1fe4a3f22cc70ef01ce38a73f548745
refs/heads/master: 3372a153c230bd0b28d470118d5a4c5840f8f966
28 changes: 27 additions & 1 deletion trunk/sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -1502,6 +1502,31 @@ static int azx_dev_free(struct snd_device *device)
return azx_free(device->device_data);
}

/*
* white/black-listing for position_fix
*/
static const struct snd_pci_quirk position_fix_list[] __devinitdata = {
SND_PCI_QUIRK(0x1028, 0x01cc, "Dell D820", POS_FIX_NONE),
{}
};

static int __devinit check_position_fix(struct azx *chip, int fix)
{
const struct snd_pci_quirk *q;

if (fix == POS_FIX_AUTO) {
q = snd_pci_quirk_lookup(chip->pci, position_fix_list);
if (q) {
snd_printdd(KERN_INFO
"hda_intel: position_fix set to %d "
"for device %04x:%04x\n",
q->value, q->subvendor, q->subdevice);
return q->value;
}
}
return fix;
}

/*
* constructor
*/
Expand Down Expand Up @@ -1536,7 +1561,8 @@ static int __devinit azx_create(struct snd_card *card, struct pci_dev *pci,
chip->driver_type = driver_type;
chip->msi = enable_msi;

chip->position_fix = position_fix;
chip->position_fix = check_position_fix(chip, position_fix);

chip->single_cmd = single_cmd;

#if BITS_PER_LONG != 64
Expand Down

0 comments on commit 3c10a5e

Please sign in to comment.