diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-11-09 11:32:39 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-11-09 11:57:51 -0500 |
commit | b3ca3bf5e8e0fb445a81aef02092ae0b11fa4482 (patch) | |
tree | 79b20e72bb83d6301779bf4c5c33bd31e958d39d | |
parent | 145fa008a208e824567d2d9b26133a4cd0e7fdbd (diff) |
ALSA: hda/realtek - Drop ALC882 model=clevo-m720 quirk
This works well without any special handling with the auto-parser.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | sound/pci/hda/alc882_quirks.c | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/sound/pci/hda/alc882_quirks.c b/sound/pci/hda/alc882_quirks.c index 80321a116ca0..370b5a7b79b3 100644 --- a/sound/pci/hda/alc882_quirks.c +++ b/sound/pci/hda/alc882_quirks.c | |||
@@ -30,7 +30,6 @@ enum { | |||
30 | ALC888_ACER_ASPIRE_6530G, | 30 | ALC888_ACER_ASPIRE_6530G, |
31 | ALC888_ACER_ASPIRE_8930G, | 31 | ALC888_ACER_ASPIRE_8930G, |
32 | ALC888_ACER_ASPIRE_7730G, | 32 | ALC888_ACER_ASPIRE_7730G, |
33 | ALC883_CLEVO_M720, | ||
34 | ALC883_3ST_6ch_INTEL, | 33 | ALC883_3ST_6ch_INTEL, |
35 | ALC889A_INTEL, | 34 | ALC889A_INTEL, |
36 | ALC889_INTEL, | 35 | ALC889_INTEL, |
@@ -1726,20 +1725,6 @@ static const struct hda_channel_mode alc889A_mb31_6ch_modes[4] = { | |||
1726 | 1725 | ||
1727 | #define alc883_base_mixer alc882_base_mixer | 1726 | #define alc883_base_mixer alc882_base_mixer |
1728 | 1727 | ||
1729 | static const struct snd_kcontrol_new alc883_clevo_m720_mixer[] = { | ||
1730 | HDA_CODEC_VOLUME("Headphone Playback Volume", 0x0c, 0x0, HDA_OUTPUT), | ||
1731 | HDA_BIND_MUTE("Headphone Playback Switch", 0x0c, 2, HDA_INPUT), | ||
1732 | HDA_CODEC_VOLUME("Speaker Playback Volume", 0x0d, 0x0, HDA_OUTPUT), | ||
1733 | HDA_BIND_MUTE("Speaker Playback Switch", 0x0d, 2, HDA_INPUT), | ||
1734 | HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x0, HDA_INPUT), | ||
1735 | HDA_CODEC_VOLUME("Mic Boost Volume", 0x18, 0, HDA_INPUT), | ||
1736 | HDA_CODEC_MUTE("Mic Playback Switch", 0x0b, 0x0, HDA_INPUT), | ||
1737 | HDA_CODEC_VOLUME("Internal Mic Playback Volume", 0x0b, 0x1, HDA_INPUT), | ||
1738 | HDA_CODEC_VOLUME("Internal Mic Boost Volume", 0x19, 0, HDA_INPUT), | ||
1739 | HDA_CODEC_MUTE("Internal Mic Playback Switch", 0x0b, 0x1, HDA_INPUT), | ||
1740 | { } /* end */ | ||
1741 | }; | ||
1742 | |||
1743 | static const struct snd_kcontrol_new alc883_3ST_2ch_mixer[] = { | 1728 | static const struct snd_kcontrol_new alc883_3ST_2ch_mixer[] = { |
1744 | HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), | 1729 | HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), |
1745 | HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT), | 1730 | HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT), |
@@ -1977,21 +1962,6 @@ static const struct snd_kcontrol_new alc883_chmode_mixer[] = { | |||
1977 | { } /* end */ | 1962 | { } /* end */ |
1978 | }; | 1963 | }; |
1979 | 1964 | ||
1980 | static const struct hda_verb alc883_clevo_m720_verbs[] = { | ||
1981 | /* HP */ | ||
1982 | {0x15, AC_VERB_SET_CONNECT_SEL, 0x00}, | ||
1983 | {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, | ||
1984 | /* Int speaker */ | ||
1985 | {0x14, AC_VERB_SET_CONNECT_SEL, 0x01}, | ||
1986 | {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT}, | ||
1987 | |||
1988 | /* enable unsolicited event */ | ||
1989 | {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, ALC_HP_EVENT | AC_USRSP_EN}, | ||
1990 | {0x18, AC_VERB_SET_UNSOLICITED_ENABLE, ALC_MIC_EVENT | AC_USRSP_EN}, | ||
1991 | |||
1992 | { } /* end */ | ||
1993 | }; | ||
1994 | |||
1995 | static const struct hda_verb alc883_targa_verbs[] = { | 1965 | static const struct hda_verb alc883_targa_verbs[] = { |
1996 | {0x0c, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, | 1966 | {0x0c, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, |
1997 | {0x0c, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)}, | 1967 | {0x0c, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)}, |
@@ -2025,34 +1995,6 @@ static const struct hda_verb alc883_targa_verbs[] = { | |||
2025 | #define alc883_targa_init_hook alc882_targa_init_hook | 1995 | #define alc883_targa_init_hook alc882_targa_init_hook |
2026 | #define alc883_targa_unsol_event alc882_targa_unsol_event | 1996 | #define alc883_targa_unsol_event alc882_targa_unsol_event |
2027 | 1997 | ||
2028 | static void alc883_clevo_m720_setup(struct hda_codec *codec) | ||
2029 | { | ||
2030 | struct alc_spec *spec = codec->spec; | ||
2031 | |||
2032 | spec->autocfg.hp_pins[0] = 0x15; | ||
2033 | spec->autocfg.speaker_pins[0] = 0x14; | ||
2034 | alc_simple_setup_automute(spec, ALC_AUTOMUTE_AMP); | ||
2035 | } | ||
2036 | |||
2037 | static void alc883_clevo_m720_init_hook(struct hda_codec *codec) | ||
2038 | { | ||
2039 | alc_hp_automute(codec); | ||
2040 | alc88x_simple_mic_automute(codec); | ||
2041 | } | ||
2042 | |||
2043 | static void alc883_clevo_m720_unsol_event(struct hda_codec *codec, | ||
2044 | unsigned int res) | ||
2045 | { | ||
2046 | switch (res >> 26) { | ||
2047 | case ALC_MIC_EVENT: | ||
2048 | alc88x_simple_mic_automute(codec); | ||
2049 | break; | ||
2050 | default: | ||
2051 | alc_sku_unsol_event(codec, res); | ||
2052 | break; | ||
2053 | } | ||
2054 | } | ||
2055 | |||
2056 | /* toggle speaker-output according to the hp-jack state */ | 1998 | /* toggle speaker-output according to the hp-jack state */ |
2057 | static void alc883_acer_aspire_setup(struct hda_codec *codec) | 1999 | static void alc883_acer_aspire_setup(struct hda_codec *codec) |
2058 | { | 2000 | { |
@@ -2153,7 +2095,6 @@ static const char * const alc882_models[ALC882_MODEL_LAST] = { | |||
2153 | [ALC888_ACER_ASPIRE_6530G] = "acer-aspire-6530g", | 2095 | [ALC888_ACER_ASPIRE_6530G] = "acer-aspire-6530g", |
2154 | [ALC888_ACER_ASPIRE_8930G] = "acer-aspire-8930g", | 2096 | [ALC888_ACER_ASPIRE_8930G] = "acer-aspire-8930g", |
2155 | [ALC888_ACER_ASPIRE_7730G] = "acer-aspire-7730g", | 2097 | [ALC888_ACER_ASPIRE_7730G] = "acer-aspire-7730g", |
2156 | [ALC883_CLEVO_M720] = "clevo-m720", | ||
2157 | [ALC883_3ST_6ch_INTEL] = "3stack-6ch-intel", | 2098 | [ALC883_3ST_6ch_INTEL] = "3stack-6ch-intel", |
2158 | [ALC889A_INTEL] = "intel-alc889a", | 2099 | [ALC889A_INTEL] = "intel-alc889a", |
2159 | [ALC889_INTEL] = "intel-x58", | 2100 | [ALC889_INTEL] = "intel-x58", |
@@ -2239,8 +2180,6 @@ static const struct snd_pci_quirk alc882_cfg_tbl[] = { | |||
2239 | 2180 | ||
2240 | SND_PCI_QUIRK(0x147b, 0x1083, "Abit IP35-PRO", ALC883_6ST_DIG), | 2181 | SND_PCI_QUIRK(0x147b, 0x1083, "Abit IP35-PRO", ALC883_6ST_DIG), |
2241 | SND_PCI_QUIRK(0x1558, 0x0571, "Clevo laptop M570U", ALC883_3ST_6ch_DIG), | 2182 | SND_PCI_QUIRK(0x1558, 0x0571, "Clevo laptop M570U", ALC883_3ST_6ch_DIG), |
2242 | SND_PCI_QUIRK(0x1558, 0x0721, "Clevo laptop M720R", ALC883_CLEVO_M720), | ||
2243 | SND_PCI_QUIRK(0x1558, 0x0722, "Clevo laptop M720SR", ALC883_CLEVO_M720), | ||
2244 | SND_PCI_QUIRK(0x15d9, 0x8780, "Supermicro PDSBA", ALC883_3ST_6ch), | 2183 | SND_PCI_QUIRK(0x15d9, 0x8780, "Supermicro PDSBA", ALC883_3ST_6ch), |
2245 | SND_PCI_QUIRK(0x17f2, 0x5000, "Albatron KI690-AM2", ALC883_6ST_DIG), | 2184 | SND_PCI_QUIRK(0x17f2, 0x5000, "Albatron KI690-AM2", ALC883_6ST_DIG), |
2246 | 2185 | ||
@@ -2699,19 +2638,6 @@ static const struct alc_config_preset alc882_presets[] = { | |||
2699 | .setup = alc888_acer_aspire_7730g_setup, | 2638 | .setup = alc888_acer_aspire_7730g_setup, |
2700 | .init_hook = alc_hp_automute, | 2639 | .init_hook = alc_hp_automute, |
2701 | }, | 2640 | }, |
2702 | [ALC883_CLEVO_M720] = { | ||
2703 | .mixers = { alc883_clevo_m720_mixer }, | ||
2704 | .init_verbs = { alc883_init_verbs, alc883_clevo_m720_verbs }, | ||
2705 | .num_dacs = ARRAY_SIZE(alc883_dac_nids), | ||
2706 | .dac_nids = alc883_dac_nids, | ||
2707 | .dig_out_nid = ALC883_DIGOUT_NID, | ||
2708 | .num_channel_mode = ARRAY_SIZE(alc883_3ST_2ch_modes), | ||
2709 | .channel_mode = alc883_3ST_2ch_modes, | ||
2710 | .input_mux = &alc883_capture_source, | ||
2711 | .unsol_event = alc883_clevo_m720_unsol_event, | ||
2712 | .setup = alc883_clevo_m720_setup, | ||
2713 | .init_hook = alc883_clevo_m720_init_hook, | ||
2714 | }, | ||
2715 | [ALC889A_MB31] = { | 2641 | [ALC889A_MB31] = { |
2716 | .mixers = { alc889A_mb31_mixer, alc883_chmode_mixer}, | 2642 | .mixers = { alc889A_mb31_mixer, alc883_chmode_mixer}, |
2717 | .init_verbs = { alc883_init_verbs, alc889A_mb31_verbs, | 2643 | .init_verbs = { alc883_init_verbs, alc889A_mb31_verbs, |