diff options
author | David Henningsson <david.henningsson@canonical.com> | 2010-09-09 02:51:44 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-09-09 03:10:01 -0400 |
commit | 6cb3b707f95954ac18f19b4b3919af235738371a (patch) | |
tree | 704ac9c2719db2dda040b77aad7bb0c8ece1bec2 /sound | |
parent | 18675e4283f575594d55ef1239c14ab5b4de53b6 (diff) |
ALSA: HDA: Add fixup pins for Ideapad Y550
By adding the subwoofer as a speaker pin, it is treated correctly when auto-muting.
BugLink: https://launchpad.net/bugs/611803
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index f11a9ca2c4b2..0c25d22be875 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -18963,6 +18963,26 @@ static void alc662_auto_init(struct hda_codec *codec) | |||
18963 | alc_inithook(codec); | 18963 | alc_inithook(codec); |
18964 | } | 18964 | } |
18965 | 18965 | ||
18966 | enum { | ||
18967 | ALC662_FIXUP_IDEAPAD, | ||
18968 | }; | ||
18969 | |||
18970 | static const struct alc_fixup alc662_fixups[] = { | ||
18971 | [ALC662_FIXUP_IDEAPAD] = { | ||
18972 | .pins = (const struct alc_pincfg[]) { | ||
18973 | { 0x17, 0x99130112 }, /* subwoofer */ | ||
18974 | { } | ||
18975 | } | ||
18976 | }, | ||
18977 | }; | ||
18978 | |||
18979 | static struct snd_pci_quirk alc662_fixup_tbl[] = { | ||
18980 | SND_PCI_QUIRK(0x17aa, 0x3a0d, "Lenovo Ideapad Y550", ALC662_FIXUP_IDEAPAD), | ||
18981 | {} | ||
18982 | }; | ||
18983 | |||
18984 | |||
18985 | |||
18966 | static int patch_alc662(struct hda_codec *codec) | 18986 | static int patch_alc662(struct hda_codec *codec) |
18967 | { | 18987 | { |
18968 | struct alc_spec *spec; | 18988 | struct alc_spec *spec; |
@@ -18995,6 +19015,7 @@ static int patch_alc662(struct hda_codec *codec) | |||
18995 | } | 19015 | } |
18996 | 19016 | ||
18997 | if (board_config == ALC662_AUTO) { | 19017 | if (board_config == ALC662_AUTO) { |
19018 | alc_pick_fixup(codec, alc662_fixup_tbl, alc662_fixups, 1); | ||
18998 | /* automatic parse from the BIOS config */ | 19019 | /* automatic parse from the BIOS config */ |
18999 | err = alc662_parse_auto_config(codec); | 19020 | err = alc662_parse_auto_config(codec); |
19000 | if (err < 0) { | 19021 | if (err < 0) { |
@@ -19053,8 +19074,11 @@ static int patch_alc662(struct hda_codec *codec) | |||
19053 | spec->vmaster_nid = 0x02; | 19074 | spec->vmaster_nid = 0x02; |
19054 | 19075 | ||
19055 | codec->patch_ops = alc_patch_ops; | 19076 | codec->patch_ops = alc_patch_ops; |
19056 | if (board_config == ALC662_AUTO) | 19077 | if (board_config == ALC662_AUTO) { |
19057 | spec->init_hook = alc662_auto_init; | 19078 | spec->init_hook = alc662_auto_init; |
19079 | alc_pick_fixup(codec, alc662_fixup_tbl, alc662_fixups, 0); | ||
19080 | } | ||
19081 | |||
19058 | #ifdef CONFIG_SND_HDA_POWER_SAVE | 19082 | #ifdef CONFIG_SND_HDA_POWER_SAVE |
19059 | if (!spec->loopback.amplist) | 19083 | if (!spec->loopback.amplist) |
19060 | spec->loopback.amplist = alc662_loopbacks; | 19084 | spec->loopback.amplist = alc662_loopbacks; |