Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26343
b: refs/heads/master
c: a769577
h: refs/heads/master
i:
  26341: 646a01c
  26339: d5a9b10
  26335: 3dafcdb
v: v3
  • Loading branch information
Takashi Iwai authored and Jaroslav Kysela committed Apr 27, 2006
1 parent 55dd380 commit ee7c072
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 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: e0292bdd306a7e1ef7a681350cf0427688a2791d
refs/heads/master: a769577b3716c757e354a681aab3524ac6b651be
8 changes: 6 additions & 2 deletions trunk/sound/pci/via82xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2332,7 +2332,7 @@ struct dxs_whitelist {
short action; /* new dxs_support value */
};

static int __devinit check_dxs_list(struct pci_dev *pci)
static int __devinit check_dxs_list(struct pci_dev *pci, int revision)
{
static struct dxs_whitelist whitelist[] = {
{ .subvendor = 0x1005, .subdevice = 0x4710, .action = VIA_DXS_ENABLE }, /* Avance Logic Mobo */
Expand Down Expand Up @@ -2413,6 +2413,10 @@ static int __devinit check_dxs_list(struct pci_dev *pci)
}
}

/* for newer revision, default to DXS_SRC */
if (revision >= VIA_REV_8235)
return VIA_DXS_SRC;

/*
* not detected, try 48k rate only to be sure.
*/
Expand Down Expand Up @@ -2457,7 +2461,7 @@ static int __devinit snd_via82xx_probe(struct pci_dev *pci,
}
if (chip_type != TYPE_VIA8233A) {
if (dxs_support == VIA_DXS_AUTO)
dxs_support = check_dxs_list(pci);
dxs_support = check_dxs_list(pci, revision);
/* force to use VIA8233 or 8233A model according to
* dxs_support module option
*/
Expand Down

0 comments on commit ee7c072

Please sign in to comment.