Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284168
b: refs/heads/master
c: 596830e
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Nov 9, 2011
1 parent cb9959f commit d587055
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 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: 0e7cc2e745450daa0aec8f32d663f7811cfac0f3
refs/heads/master: 596830ee1d2d9cf56e5efe0c020eb588beecae62
22 changes: 18 additions & 4 deletions trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -1526,6 +1526,7 @@ static void alc_pick_fixup(struct hda_codec *codec,
const struct alc_fixup *fixlist)
{
struct alc_spec *spec = codec->spec;
const struct snd_pci_quirk *q;
int id = -1;
const char *name = NULL;

Expand All @@ -1540,12 +1541,25 @@ static void alc_pick_fixup(struct hda_codec *codec,
}
}
if (id < 0) {
quirk = snd_pci_quirk_lookup(codec->bus->pci, quirk);
if (quirk) {
id = quirk->value;
q = snd_pci_quirk_lookup(codec->bus->pci, quirk);
if (q) {
id = q->value;
#ifdef CONFIG_SND_DEBUG_VERBOSE
name = q->name;
#endif
}
}
if (id < 0) {
for (q = quirk; q->subvendor; q++) {
unsigned int vendorid =
q->subdevice | (q->subvendor << 16);
if (vendorid == codec->subsystem_id) {
id = q->value;
#ifdef CONFIG_SND_DEBUG_VERBOSE
name = quirk->name;
name = q->name;
#endif
break;
}
}
}

Expand Down

0 comments on commit d587055

Please sign in to comment.