Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 47121
b: refs/heads/master
c: f41bea8
h: refs/heads/master
i:
  47119: b19bde4
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Feb 9, 2007
1 parent 8d5b60c commit 7e31202
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 27 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: d9ea472c743ccd7344055cb118bc210befbd8007
refs/heads/master: f41bea84c030793b502aa2526bb22476788e731e
36 changes: 10 additions & 26 deletions trunk/sound/pci/atiixp.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,21 +296,9 @@ static struct pci_device_id snd_atiixp_ids[] = {

MODULE_DEVICE_TABLE(pci, snd_atiixp_ids);

struct atiixp_quirk {
unsigned short subvendor;
unsigned short subdevice;
const char *name;
int ac97_codec;
};

static struct atiixp_quirk atiixp_quirks[] __devinitdata = {
{
.subvendor = 0x15bd,
.subdevice = 0x3100,
.name = "DFI RS482",
.ac97_codec = 0,
},
{ .subvendor = 0 } /* terminator */
static struct snd_pci_quirk atiixp_quirks[] __devinitdata = {
SND_PCI_QUIRK(0x15bd, 0x3100, "DFI RS482", 0),
{ } /* terminator */
};

/*
Expand Down Expand Up @@ -574,17 +562,13 @@ static int snd_atiixp_aclink_down(struct atiixp *chip)

static int ac97_probing_bugs(struct pci_dev *pci)
{
int i = 0;

while (atiixp_quirks[i].subvendor) {
if (pci->subsystem_vendor == atiixp_quirks[i].subvendor &&
pci->subsystem_device == atiixp_quirks[i].subdevice) {
printk(KERN_INFO "Atiixp quirk for %s. "
"Forcing codec %d\n", atiixp_quirks[i].name,
atiixp_quirks[i].ac97_codec);
return atiixp_quirks[i].ac97_codec;
}
i++;
const struct snd_pci_quirk *q;

q = snd_pci_quirk_lookup(pci, atiixp_quirks);
if (q) {
snd_printdd(KERN_INFO "Atiixp quirk for %s. "
"Forcing codec %d\n", q->name, q->value);
return q->value;
}
/* this hardware doesn't need workarounds. Probe for codec */
return -1;
Expand Down

0 comments on commit 7e31202

Please sign in to comment.