Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 216679
b: refs/heads/master
c: 6cb3b70
h: refs/heads/master
i:
  216677: b6f7f33
  216675: c7efcb7
  216671: 2f4139c
v: v3
  • Loading branch information
David Henningsson authored and Takashi Iwai committed Sep 9, 2010
1 parent bc67b1a commit d40741c
Show file tree
Hide file tree
Showing 2 changed files with 26 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: 18675e4283f575594d55ef1239c14ab5b4de53b6
refs/heads/master: 6cb3b707f95954ac18f19b4b3919af235738371a
26 changes: 25 additions & 1 deletion trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -18963,6 +18963,26 @@ static void alc662_auto_init(struct hda_codec *codec)
alc_inithook(codec);
}

enum {
ALC662_FIXUP_IDEAPAD,
};

static const struct alc_fixup alc662_fixups[] = {
[ALC662_FIXUP_IDEAPAD] = {
.pins = (const struct alc_pincfg[]) {
{ 0x17, 0x99130112 }, /* subwoofer */
{ }
}
},
};

static struct snd_pci_quirk alc662_fixup_tbl[] = {
SND_PCI_QUIRK(0x17aa, 0x3a0d, "Lenovo Ideapad Y550", ALC662_FIXUP_IDEAPAD),
{}
};



static int patch_alc662(struct hda_codec *codec)
{
struct alc_spec *spec;
Expand Down Expand Up @@ -18995,6 +19015,7 @@ static int patch_alc662(struct hda_codec *codec)
}

if (board_config == ALC662_AUTO) {
alc_pick_fixup(codec, alc662_fixup_tbl, alc662_fixups, 1);
/* automatic parse from the BIOS config */
err = alc662_parse_auto_config(codec);
if (err < 0) {
Expand Down Expand Up @@ -19053,8 +19074,11 @@ static int patch_alc662(struct hda_codec *codec)
spec->vmaster_nid = 0x02;

codec->patch_ops = alc_patch_ops;
if (board_config == ALC662_AUTO)
if (board_config == ALC662_AUTO) {
spec->init_hook = alc662_auto_init;
alc_pick_fixup(codec, alc662_fixup_tbl, alc662_fixups, 0);
}

#ifdef CONFIG_SND_HDA_POWER_SAVE
if (!spec->loopback.amplist)
spec->loopback.amplist = alc662_loopbacks;
Expand Down

0 comments on commit d40741c

Please sign in to comment.