diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-11-09 08:56:13 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-11-09 09:12:20 -0500 |
commit | ed63a88775c183dd3d6ee0bde0670960754e944a (patch) | |
tree | cf75f470a1bacb602398e55699c861b237d34dd4 /sound | |
parent | f01f587bb779aabf220233b3aac52b437114ec84 (diff) |
ALSA: hda/realtek - Drop ALC882 mitac and fujitsu-xa3530 static configs
These are working well with the auto-parser although they have
relatively complex setup. Let's go forward.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/alc882_quirks.c | 131 |
1 files changed, 0 insertions, 131 deletions
diff --git a/sound/pci/hda/alc882_quirks.c b/sound/pci/hda/alc882_quirks.c index a71077d94451..2c5c1810f802 100644 --- a/sound/pci/hda/alc882_quirks.c +++ b/sound/pci/hda/alc882_quirks.c | |||
@@ -36,10 +36,8 @@ enum { | |||
36 | ALC883_LAPTOP_EAPD, | 36 | ALC883_LAPTOP_EAPD, |
37 | ALC888_3ST_HP, | 37 | ALC888_3ST_HP, |
38 | ALC888_6ST_DELL, | 38 | ALC888_6ST_DELL, |
39 | ALC883_MITAC, | ||
40 | ALC883_CLEVO_M540R, | 39 | ALC883_CLEVO_M540R, |
41 | ALC883_CLEVO_M720, | 40 | ALC883_CLEVO_M720, |
42 | ALC888_FUJITSU_XA3530, | ||
43 | ALC883_3ST_6ch_INTEL, | 41 | ALC883_3ST_6ch_INTEL, |
44 | ALC889A_INTEL, | 42 | ALC889A_INTEL, |
45 | ALC889_INTEL, | 43 | ALC889_INTEL, |
@@ -114,43 +112,6 @@ static const struct hda_channel_mode alc888_4ST_8ch_intel_modes[4] = { | |||
114 | { 8, alc888_4ST_ch8_intel_init }, | 112 | { 8, alc888_4ST_ch8_intel_init }, |
115 | }; | 113 | }; |
116 | 114 | ||
117 | /* | ||
118 | * ALC888 Fujitsu Siemens Amillo xa3530 | ||
119 | */ | ||
120 | |||
121 | static const struct hda_verb alc888_fujitsu_xa3530_verbs[] = { | ||
122 | /* Front Mic: set to PIN_IN (empty by default) */ | ||
123 | {0x12, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
124 | /* Connect Internal HP to Front */ | ||
125 | {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, | ||
126 | {0x14, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
127 | {0x14, AC_VERB_SET_CONNECT_SEL, 0x00}, | ||
128 | /* Connect Bass HP to Front */ | ||
129 | {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, | ||
130 | {0x15, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
131 | {0x15, AC_VERB_SET_CONNECT_SEL, 0x00}, | ||
132 | /* Connect Line-Out side jack (SPDIF) to Side */ | ||
133 | {0x17, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, | ||
134 | {0x17, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
135 | {0x17, AC_VERB_SET_CONNECT_SEL, 0x03}, | ||
136 | /* Connect Mic jack to CLFE */ | ||
137 | {0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, | ||
138 | {0x18, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
139 | {0x18, AC_VERB_SET_CONNECT_SEL, 0x02}, | ||
140 | /* Connect Line-in jack to Surround */ | ||
141 | {0x1a, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, | ||
142 | {0x1a, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
143 | {0x1a, AC_VERB_SET_CONNECT_SEL, 0x01}, | ||
144 | /* Connect HP out jack to Front */ | ||
145 | {0x1b, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, | ||
146 | {0x1b, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
147 | {0x1b, AC_VERB_SET_CONNECT_SEL, 0x00}, | ||
148 | /* Enable unsolicited event for HP jack and Line-out jack */ | ||
149 | {0x1b, AC_VERB_SET_UNSOLICITED_ENABLE, ALC_HP_EVENT | AC_USRSP_EN}, | ||
150 | {0x17, AC_VERB_SET_UNSOLICITED_ENABLE, ALC_HP_EVENT | AC_USRSP_EN}, | ||
151 | {} | ||
152 | }; | ||
153 | |||
154 | static void alc889_automute_setup(struct hda_codec *codec) | 115 | static void alc889_automute_setup(struct hda_codec *codec) |
155 | { | 116 | { |
156 | struct alc_spec *spec = codec->spec; | 117 | struct alc_spec *spec = codec->spec; |
@@ -170,17 +131,6 @@ static void alc889_intel_init_hook(struct hda_codec *codec) | |||
170 | alc_hp_automute(codec); | 131 | alc_hp_automute(codec); |
171 | } | 132 | } |
172 | 133 | ||
173 | static void alc888_fujitsu_xa3530_setup(struct hda_codec *codec) | ||
174 | { | ||
175 | struct alc_spec *spec = codec->spec; | ||
176 | |||
177 | spec->autocfg.hp_pins[0] = 0x17; /* line-out */ | ||
178 | spec->autocfg.hp_pins[1] = 0x1b; /* hp */ | ||
179 | spec->autocfg.speaker_pins[0] = 0x14; /* speaker */ | ||
180 | spec->autocfg.speaker_pins[1] = 0x15; /* bass */ | ||
181 | alc_simple_setup_automute(spec, ALC_AUTOMUTE_AMP); | ||
182 | } | ||
183 | |||
184 | /* | 134 | /* |
185 | * ALC888 Acer Aspire 4930G model | 135 | * ALC888 Acer Aspire 4930G model |
186 | */ | 136 | */ |
@@ -1790,23 +1740,6 @@ static const struct hda_verb alc883_medion_eapd_verbs[] = { | |||
1790 | 1740 | ||
1791 | #define alc883_base_mixer alc882_base_mixer | 1741 | #define alc883_base_mixer alc882_base_mixer |
1792 | 1742 | ||
1793 | static const struct snd_kcontrol_new alc883_mitac_mixer[] = { | ||
1794 | HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), | ||
1795 | HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT), | ||
1796 | HDA_CODEC_VOLUME_MONO("Center Playback Volume", 0x0e, 1, 0x0, HDA_OUTPUT), | ||
1797 | HDA_CODEC_VOLUME_MONO("LFE Playback Volume", 0x0e, 2, 0x0, HDA_OUTPUT), | ||
1798 | HDA_BIND_MUTE_MONO("Center Playback Switch", 0x0e, 1, 2, HDA_INPUT), | ||
1799 | HDA_BIND_MUTE_MONO("LFE Playback Switch", 0x0e, 2, 2, HDA_INPUT), | ||
1800 | HDA_CODEC_MUTE("Headphone Playback Switch", 0x15, 0x0, HDA_OUTPUT), | ||
1801 | HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x0, HDA_INPUT), | ||
1802 | HDA_CODEC_VOLUME("Mic Boost Volume", 0x18, 0, HDA_INPUT), | ||
1803 | HDA_CODEC_MUTE("Mic Playback Switch", 0x0b, 0x0, HDA_INPUT), | ||
1804 | HDA_CODEC_VOLUME("Front Mic Playback Volume", 0x0b, 0x1, HDA_INPUT), | ||
1805 | HDA_CODEC_VOLUME("Front Mic Boost Volume", 0x19, 0, HDA_INPUT), | ||
1806 | HDA_CODEC_MUTE("Front Mic Playback Switch", 0x0b, 0x1, HDA_INPUT), | ||
1807 | { } /* end */ | ||
1808 | }; | ||
1809 | |||
1810 | static const struct snd_kcontrol_new alc883_clevo_m720_mixer[] = { | 1743 | static const struct snd_kcontrol_new alc883_clevo_m720_mixer[] = { |
1811 | HDA_CODEC_VOLUME("Headphone Playback Volume", 0x0c, 0x0, HDA_OUTPUT), | 1744 | HDA_CODEC_VOLUME("Headphone Playback Volume", 0x0c, 0x0, HDA_OUTPUT), |
1812 | HDA_BIND_MUTE("Headphone Playback Switch", 0x0c, 2, HDA_INPUT), | 1745 | HDA_BIND_MUTE("Headphone Playback Switch", 0x0c, 2, HDA_INPUT), |
@@ -2095,32 +2028,6 @@ static const struct snd_kcontrol_new alc883_chmode_mixer[] = { | |||
2095 | { } /* end */ | 2028 | { } /* end */ |
2096 | }; | 2029 | }; |
2097 | 2030 | ||
2098 | /* toggle speaker-output according to the hp-jack state */ | ||
2099 | static void alc883_mitac_setup(struct hda_codec *codec) | ||
2100 | { | ||
2101 | struct alc_spec *spec = codec->spec; | ||
2102 | |||
2103 | spec->autocfg.hp_pins[0] = 0x15; | ||
2104 | spec->autocfg.speaker_pins[0] = 0x14; | ||
2105 | spec->autocfg.speaker_pins[1] = 0x17; | ||
2106 | alc_simple_setup_automute(spec, ALC_AUTOMUTE_AMP); | ||
2107 | } | ||
2108 | |||
2109 | static const struct hda_verb alc883_mitac_verbs[] = { | ||
2110 | /* HP */ | ||
2111 | {0x15, AC_VERB_SET_CONNECT_SEL, 0x00}, | ||
2112 | {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, | ||
2113 | /* Subwoofer */ | ||
2114 | {0x17, AC_VERB_SET_CONNECT_SEL, 0x02}, | ||
2115 | {0x17, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, | ||
2116 | |||
2117 | /* enable unsolicited event */ | ||
2118 | {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC_HP_EVENT | AC_USRSP_EN}, | ||
2119 | /* {0x18, AC_VERB_SET_UNSOLICITED_ENABLE, ALC_MIC_EVENT | AC_USRSP_EN}, */ | ||
2120 | |||
2121 | { } /* end */ | ||
2122 | }; | ||
2123 | |||
2124 | static const struct hda_verb alc883_clevo_m540r_verbs[] = { | 2031 | static const struct hda_verb alc883_clevo_m540r_verbs[] = { |
2125 | /* HP */ | 2032 | /* HP */ |
2126 | {0x15, AC_VERB_SET_CONNECT_SEL, 0x00}, | 2033 | {0x15, AC_VERB_SET_CONNECT_SEL, 0x00}, |
@@ -2397,10 +2304,8 @@ static const char * const alc882_models[ALC882_MODEL_LAST] = { | |||
2397 | [ALC883_LAPTOP_EAPD] = "laptop-eapd", | 2304 | [ALC883_LAPTOP_EAPD] = "laptop-eapd", |
2398 | [ALC888_3ST_HP] = "3stack-hp", | 2305 | [ALC888_3ST_HP] = "3stack-hp", |
2399 | [ALC888_6ST_DELL] = "6stack-dell", | 2306 | [ALC888_6ST_DELL] = "6stack-dell", |
2400 | [ALC883_MITAC] = "mitac", | ||
2401 | [ALC883_CLEVO_M540R] = "clevo-m540r", | 2307 | [ALC883_CLEVO_M540R] = "clevo-m540r", |
2402 | [ALC883_CLEVO_M720] = "clevo-m720", | 2308 | [ALC883_CLEVO_M720] = "clevo-m720", |
2403 | [ALC888_FUJITSU_XA3530] = "fujitsu-xa3530", | ||
2404 | [ALC883_3ST_6ch_INTEL] = "3stack-6ch-intel", | 2309 | [ALC883_3ST_6ch_INTEL] = "3stack-6ch-intel", |
2405 | [ALC889A_INTEL] = "intel-alc889a", | 2310 | [ALC889A_INTEL] = "intel-alc889a", |
2406 | [ALC889_INTEL] = "intel-x58", | 2311 | [ALC889_INTEL] = "intel-x58", |
@@ -2455,8 +2360,6 @@ static const struct snd_pci_quirk alc882_cfg_tbl[] = { | |||
2455 | 2360 | ||
2456 | SND_PCI_QUIRK(0x105b, 0x0ce8, "Foxconn P35AX-S", ALC883_6ST_DIG), | 2361 | SND_PCI_QUIRK(0x105b, 0x0ce8, "Foxconn P35AX-S", ALC883_6ST_DIG), |
2457 | SND_PCI_QUIRK(0x105b, 0x6668, "Foxconn", ALC882_6ST_DIG), | 2362 | SND_PCI_QUIRK(0x105b, 0x6668, "Foxconn", ALC882_6ST_DIG), |
2458 | SND_PCI_QUIRK(0x1071, 0x8227, "Mitac 82801H", ALC883_MITAC), | ||
2459 | SND_PCI_QUIRK(0x1071, 0x8253, "Mitac 8252d", ALC883_MITAC), | ||
2460 | SND_PCI_QUIRK(0x1071, 0x8258, "Evesham Voyaeger", ALC883_LAPTOP_EAPD), | 2363 | SND_PCI_QUIRK(0x1071, 0x8258, "Evesham Voyaeger", ALC883_LAPTOP_EAPD), |
2461 | SND_PCI_QUIRK(0x10f1, 0x2350, "TYAN-S2350", ALC888_6ST_DELL), | 2364 | SND_PCI_QUIRK(0x10f1, 0x2350, "TYAN-S2350", ALC888_6ST_DELL), |
2462 | SND_PCI_QUIRK(0x108e, 0x534d, NULL, ALC883_3ST_6ch), | 2365 | SND_PCI_QUIRK(0x108e, 0x534d, NULL, ALC883_3ST_6ch), |
@@ -2503,13 +2406,10 @@ static const struct snd_pci_quirk alc882_cfg_tbl[] = { | |||
2503 | SND_PCI_QUIRK(0x15d9, 0x8780, "Supermicro PDSBA", ALC883_3ST_6ch), | 2406 | SND_PCI_QUIRK(0x15d9, 0x8780, "Supermicro PDSBA", ALC883_3ST_6ch), |
2504 | /* SND_PCI_QUIRK(0x161f, 0x2054, "Arima W820", ALC882_ARIMA), */ | 2407 | /* SND_PCI_QUIRK(0x161f, 0x2054, "Arima W820", ALC882_ARIMA), */ |
2505 | SND_PCI_QUIRK(0x161f, 0x2054, "Medion laptop", ALC883_MEDION), | 2408 | SND_PCI_QUIRK(0x161f, 0x2054, "Medion laptop", ALC883_MEDION), |
2506 | SND_PCI_QUIRK_MASK(0x1734, 0xfff0, 0x1130, "Fujitsu AMILO Xa35xx", | ||
2507 | ALC888_FUJITSU_XA3530), | ||
2508 | SND_PCI_QUIRK(0x17f2, 0x5000, "Albatron KI690-AM2", ALC883_6ST_DIG), | 2409 | SND_PCI_QUIRK(0x17f2, 0x5000, "Albatron KI690-AM2", ALC883_6ST_DIG), |
2509 | 2410 | ||
2510 | SND_PCI_QUIRK(0x8086, 0x0001, "DG33BUC", ALC883_3ST_6ch_INTEL), | 2411 | SND_PCI_QUIRK(0x8086, 0x0001, "DG33BUC", ALC883_3ST_6ch_INTEL), |
2511 | SND_PCI_QUIRK(0x8086, 0x0002, "DG33FBC", ALC883_3ST_6ch_INTEL), | 2412 | SND_PCI_QUIRK(0x8086, 0x0002, "DG33FBC", ALC883_3ST_6ch_INTEL), |
2512 | SND_PCI_QUIRK(0x8086, 0x2503, "82801H", ALC883_MITAC), | ||
2513 | SND_PCI_QUIRK(0x8086, 0x0022, "DX58SO", ALC889_INTEL), | 2413 | SND_PCI_QUIRK(0x8086, 0x0022, "DX58SO", ALC889_INTEL), |
2514 | SND_PCI_QUIRK(0x8086, 0x0021, "Intel IbexPeak", ALC889A_INTEL), | 2414 | SND_PCI_QUIRK(0x8086, 0x0021, "Intel IbexPeak", ALC889A_INTEL), |
2515 | SND_PCI_QUIRK(0x8086, 0x3b56, "Intel IbexPeak", ALC889A_INTEL), | 2415 | SND_PCI_QUIRK(0x8086, 0x3b56, "Intel IbexPeak", ALC889A_INTEL), |
@@ -3066,37 +2966,6 @@ static const struct alc_config_preset alc882_presets[] = { | |||
3066 | .setup = alc888_6st_dell_setup, | 2966 | .setup = alc888_6st_dell_setup, |
3067 | .init_hook = alc_hp_automute, | 2967 | .init_hook = alc_hp_automute, |
3068 | }, | 2968 | }, |
3069 | [ALC883_MITAC] = { | ||
3070 | .mixers = { alc883_mitac_mixer }, | ||
3071 | .init_verbs = { alc883_init_verbs, alc883_mitac_verbs }, | ||
3072 | .num_dacs = ARRAY_SIZE(alc883_dac_nids), | ||
3073 | .dac_nids = alc883_dac_nids, | ||
3074 | .num_channel_mode = ARRAY_SIZE(alc883_3ST_2ch_modes), | ||
3075 | .channel_mode = alc883_3ST_2ch_modes, | ||
3076 | .input_mux = &alc883_capture_source, | ||
3077 | .unsol_event = alc_sku_unsol_event, | ||
3078 | .setup = alc883_mitac_setup, | ||
3079 | .init_hook = alc_hp_automute, | ||
3080 | }, | ||
3081 | [ALC888_FUJITSU_XA3530] = { | ||
3082 | .mixers = { alc888_base_mixer, alc883_chmode_mixer }, | ||
3083 | .init_verbs = { alc883_init_verbs, | ||
3084 | alc888_fujitsu_xa3530_verbs }, | ||
3085 | .num_dacs = ARRAY_SIZE(alc883_dac_nids), | ||
3086 | .dac_nids = alc883_dac_nids, | ||
3087 | .num_adc_nids = ARRAY_SIZE(alc883_adc_nids_rev), | ||
3088 | .adc_nids = alc883_adc_nids_rev, | ||
3089 | .capsrc_nids = alc883_capsrc_nids_rev, | ||
3090 | .dig_out_nid = ALC883_DIGOUT_NID, | ||
3091 | .num_channel_mode = ARRAY_SIZE(alc888_4ST_8ch_intel_modes), | ||
3092 | .channel_mode = alc888_4ST_8ch_intel_modes, | ||
3093 | .num_mux_defs = | ||
3094 | ARRAY_SIZE(alc888_2_capture_sources), | ||
3095 | .input_mux = alc888_2_capture_sources, | ||
3096 | .unsol_event = alc_sku_unsol_event, | ||
3097 | .setup = alc888_fujitsu_xa3530_setup, | ||
3098 | .init_hook = alc_hp_automute, | ||
3099 | }, | ||
3100 | [ALC889A_MB31] = { | 2969 | [ALC889A_MB31] = { |
3101 | .mixers = { alc889A_mb31_mixer, alc883_chmode_mixer}, | 2970 | .mixers = { alc889A_mb31_mixer, alc883_chmode_mixer}, |
3102 | .init_verbs = { alc883_init_verbs, alc889A_mb31_verbs, | 2971 | .init_verbs = { alc883_init_verbs, alc889A_mb31_verbs, |