diff options
author | Takashi Iwai <tiwai@suse.de> | 2010-08-30 03:39:57 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2010-08-30 03:39:57 -0400 |
commit | 73413b120d5d6eb6c98451bbc19acf43e0e300ae (patch) | |
tree | 8ae66bad6ea22346e4d769f7182b5a8a8f3a6201 /sound | |
parent | 2bfc96a127bc1cc94d26bfaa40159966064f9c8c (diff) |
ALSA: hda - embed alc_fixup contents into struct definitions
Instead of defining each content as a separate struct, put all into the
definition of struct alc_fixup arrays so that reader doesn't go back to
see the definition again.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 70 |
1 files changed, 29 insertions, 41 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 627bf9963368..50e0c82fd994 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -6799,14 +6799,12 @@ enum { | |||
6799 | PINFIX_HP_DC5750, | 6799 | PINFIX_HP_DC5750, |
6800 | }; | 6800 | }; |
6801 | 6801 | ||
6802 | static struct alc_pincfg alc260_hp_dc5750_pinfix[] = { | ||
6803 | { 0x11, 0x90130110 }, /* speaker */ | ||
6804 | { } | ||
6805 | }; | ||
6806 | |||
6807 | static const struct alc_fixup alc260_fixups[] = { | 6802 | static const struct alc_fixup alc260_fixups[] = { |
6808 | [PINFIX_HP_DC5750] = { | 6803 | [PINFIX_HP_DC5750] = { |
6809 | .pins = alc260_hp_dc5750_pinfix | 6804 | .pins = (const struct alc_pincfg[]) { |
6805 | { 0x11, 0x90130110 }, /* speaker */ | ||
6806 | { } | ||
6807 | } | ||
6810 | }, | 6808 | }, |
6811 | }; | 6809 | }; |
6812 | 6810 | ||
@@ -10452,24 +10450,20 @@ enum { | |||
10452 | PINFIX_PB_M5210, | 10450 | PINFIX_PB_M5210, |
10453 | }; | 10451 | }; |
10454 | 10452 | ||
10455 | static struct alc_pincfg alc882_abit_aw9d_pinfix[] = { | ||
10456 | { 0x15, 0x01080104 }, /* side */ | ||
10457 | { 0x16, 0x01011012 }, /* rear */ | ||
10458 | { 0x17, 0x01016011 }, /* clfe */ | ||
10459 | { } | ||
10460 | }; | ||
10461 | |||
10462 | static const struct hda_verb pb_m5210_verbs[] = { | ||
10463 | { 0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF50 }, | ||
10464 | {} | ||
10465 | }; | ||
10466 | |||
10467 | static const struct alc_fixup alc882_fixups[] = { | 10453 | static const struct alc_fixup alc882_fixups[] = { |
10468 | [PINFIX_ABIT_AW9D_MAX] = { | 10454 | [PINFIX_ABIT_AW9D_MAX] = { |
10469 | .pins = alc882_abit_aw9d_pinfix | 10455 | .pins = (const struct alc_pincfg[]) { |
10456 | { 0x15, 0x01080104 }, /* side */ | ||
10457 | { 0x16, 0x01011012 }, /* rear */ | ||
10458 | { 0x17, 0x01016011 }, /* clfe */ | ||
10459 | { } | ||
10460 | } | ||
10470 | }, | 10461 | }, |
10471 | [PINFIX_PB_M5210] = { | 10462 | [PINFIX_PB_M5210] = { |
10472 | .verbs = pb_m5210_verbs | 10463 | .verbs = (const struct hda_verb[]) { |
10464 | { 0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF50 }, | ||
10465 | {} | ||
10466 | } | ||
10473 | }, | 10467 | }, |
10474 | }; | 10468 | }; |
10475 | 10469 | ||
@@ -14454,14 +14448,12 @@ enum { | |||
14454 | ALC269_FIXUP_SONY_VAIO, | 14448 | ALC269_FIXUP_SONY_VAIO, |
14455 | }; | 14449 | }; |
14456 | 14450 | ||
14457 | static const struct hda_verb alc269_sony_vaio_fixup_verbs[] = { | ||
14458 | {0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREFGRD}, | ||
14459 | {} | ||
14460 | }; | ||
14461 | |||
14462 | static const struct alc_fixup alc269_fixups[] = { | 14451 | static const struct alc_fixup alc269_fixups[] = { |
14463 | [ALC269_FIXUP_SONY_VAIO] = { | 14452 | [ALC269_FIXUP_SONY_VAIO] = { |
14464 | .verbs = alc269_sony_vaio_fixup_verbs | 14453 | .verbs = (const struct hda_verb[]) { |
14454 | {0x19, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREFGRD}, | ||
14455 | {} | ||
14456 | } | ||
14465 | }, | 14457 | }, |
14466 | }; | 14458 | }; |
14467 | 14459 | ||
@@ -15819,15 +15811,13 @@ enum { | |||
15819 | PINFIX_FSC_AMILO_PI1505, | 15811 | PINFIX_FSC_AMILO_PI1505, |
15820 | }; | 15812 | }; |
15821 | 15813 | ||
15822 | static struct alc_pincfg alc861_fsc_amilo_pi1505_pinfix[] = { | ||
15823 | { 0x0b, 0x0221101f }, /* HP */ | ||
15824 | { 0x0f, 0x90170310 }, /* speaker */ | ||
15825 | { } | ||
15826 | }; | ||
15827 | |||
15828 | static const struct alc_fixup alc861_fixups[] = { | 15814 | static const struct alc_fixup alc861_fixups[] = { |
15829 | [PINFIX_FSC_AMILO_PI1505] = { | 15815 | [PINFIX_FSC_AMILO_PI1505] = { |
15830 | .pins = alc861_fsc_amilo_pi1505_pinfix | 15816 | .pins = (const struct alc_pincfg[]) { |
15817 | { 0x0b, 0x0221101f }, /* HP */ | ||
15818 | { 0x0f, 0x90170310 }, /* speaker */ | ||
15819 | { } | ||
15820 | } | ||
15831 | }, | 15821 | }, |
15832 | }; | 15822 | }; |
15833 | 15823 | ||
@@ -16794,16 +16784,14 @@ enum { | |||
16794 | }; | 16784 | }; |
16795 | 16785 | ||
16796 | /* reset GPIO1 */ | 16786 | /* reset GPIO1 */ |
16797 | static const struct hda_verb alc660vd_fix_asus_gpio1_verbs[] = { | ||
16798 | {0x01, AC_VERB_SET_GPIO_MASK, 0x03}, | ||
16799 | {0x01, AC_VERB_SET_GPIO_DIRECTION, 0x01}, | ||
16800 | {0x01, AC_VERB_SET_GPIO_DATA, 0x01}, | ||
16801 | { } | ||
16802 | }; | ||
16803 | |||
16804 | static const struct alc_fixup alc861vd_fixups[] = { | 16787 | static const struct alc_fixup alc861vd_fixups[] = { |
16805 | [ALC660VD_FIX_ASUS_GPIO1] = { | 16788 | [ALC660VD_FIX_ASUS_GPIO1] = { |
16806 | .verbs = alc660vd_fix_asus_gpio1_verbs, | 16789 | .verbs = (const struct hda_verb[]) { |
16790 | {0x01, AC_VERB_SET_GPIO_MASK, 0x03}, | ||
16791 | {0x01, AC_VERB_SET_GPIO_DIRECTION, 0x01}, | ||
16792 | {0x01, AC_VERB_SET_GPIO_DATA, 0x01}, | ||
16793 | { } | ||
16794 | } | ||
16807 | }, | 16795 | }, |
16808 | }; | 16796 | }; |
16809 | 16797 | ||