aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-01-10 04:18:14 -0500
committerTakashi Iwai <tiwai@suse.de>2013-01-12 02:44:35 -0500
commitfd1082159d1445b0306a4696a2aade251ce2fcb2 (patch)
tree8e884bbd3cfe59af2a9ae09c6d12d09d4a99da56 /sound/pci/hda/patch_realtek.c
parentd3f02d60eecfc43088a3cb95d35e0cf75b4b8266 (diff)
ALSA: hda - Add a new fixup type to override pinctl values
Add a new fixup type, HDA_FIXUP_PINCTLS, for overriding the pinctl values of the given pins. It takes the same array of struct pintbl like HDA_FIXUP_PINS, but each entry contains the pinctl value instead of the pin default config value. This patch also replaces the corresponding codes in patch_realtek.c. Without this change, the direct call of verbs may be overridden again by the later call of pinctl restoration by the driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 7a4b78376303..c8fcfa830778 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -1794,9 +1794,9 @@ static const struct hda_fixup alc882_fixups[] = {
1794 } 1794 }
1795 }, 1795 },
1796 [ALC882_FIXUP_PB_M5210] = { 1796 [ALC882_FIXUP_PB_M5210] = {
1797 .type = HDA_FIXUP_VERBS, 1797 .type = HDA_FIXUP_PINCTLS,
1798 .v.verbs = (const struct hda_verb[]) { 1798 .v.pins = (const struct hda_pintbl[]) {
1799 { 0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF50 }, 1799 { 0x19, PIN_VREF50 },
1800 {} 1800 {}
1801 } 1801 }
1802 }, 1802 },
@@ -2158,9 +2158,9 @@ static const struct hda_fixup alc262_fixups[] = {
2158 } 2158 }
2159 }, 2159 },
2160 [ALC262_FIXUP_LENOVO_3000] = { 2160 [ALC262_FIXUP_LENOVO_3000] = {
2161 .type = HDA_FIXUP_VERBS, 2161 .type = HDA_FIXUP_PINCTLS,
2162 .v.verbs = (const struct hda_verb[]) { 2162 .v.pins = (const struct hda_pintbl[]) {
2163 { 0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF50 }, 2163 { 0x19, PIN_VREF50 },
2164 {} 2164 {}
2165 }, 2165 },
2166 .chained = true, 2166 .chained = true,
@@ -2715,9 +2715,9 @@ enum {
2715 2715
2716static const struct hda_fixup alc269_fixups[] = { 2716static const struct hda_fixup alc269_fixups[] = {
2717 [ALC269_FIXUP_SONY_VAIO] = { 2717 [ALC269_FIXUP_SONY_VAIO] = {
2718 .type = HDA_FIXUP_VERBS, 2718 .type = HDA_FIXUP_PINCTLS,
2719 .v.verbs = (const struct hda_verb[]) { 2719 .v.pins = (const struct hda_pintbl[]) {
2720 {0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREFGRD}, 2720 {0x19, PIN_VREFGRD},
2721 {} 2721 {}
2722 } 2722 }
2723 }, 2723 },