Skip to content

Commit 2996bdb

Browse files
committed
ALSA: hda - Remove ALC662 eeepc-p701 and ecs models
These are confirmed to work with the auto-parser with pincfg fixups. Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 91baa2c commit 2996bdb

3 files changed

Lines changed: 13 additions & 65 deletions

File tree

‎Documentation/sound/alsa/HD-Audio-Models.txt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ ALC662/663/272
7474
3stack-6ch-dig 3-stack (6-channel) with SPDIF
7575
5stack-dig 5-stack with SPDIF
7676
lenovo-101e Lenovo laptop
77-
eeepc-p701 ASUS Eeepc P701
7877
eeepc-ep20 ASUS Eeepc EP20
79-
ecs ECS/Foxconn mobo
8078
m51va ASUS M51VA
8179
g71v ASUS G71V
8280
h13 ASUS H13

‎sound/pci/hda/alc662_quirks.c‎

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,11 @@ enum {
1111
ALC662_3ST_6ch,
1212
ALC662_5ST_DIG,
1313
ALC662_LENOVO_101E,
14-
ALC662_ASUS_EEEPC_P701,
1514
ALC662_ASUS_EEEPC_EP20,
1615
ALC663_ASUS_M51VA,
1716
ALC663_ASUS_G71V,
1817
ALC663_ASUS_H13,
1918
ALC663_ASUS_G50V,
20-
ALC662_ECS,
2119
ALC663_ASUS_MODE1,
2220
ALC662_ASUS_MODE2,
2321
ALC663_ASUS_MODE3,
@@ -222,20 +220,6 @@ static const struct snd_kcontrol_new alc662_lenovo_101e_mixer[] = {
222220
{ } /* end */
223221
};
224222

225-
static const struct snd_kcontrol_new alc662_eeepc_p701_mixer[] = {
226-
HDA_CODEC_VOLUME("Master Playback Volume", 0x02, 0x0, HDA_OUTPUT),
227-
ALC262_HIPPO_MASTER_SWITCH,
228-
229-
HDA_CODEC_VOLUME("Mic Boost Volume", 0x18, 0, HDA_INPUT),
230-
HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x0, HDA_INPUT),
231-
HDA_CODEC_MUTE("Mic Playback Switch", 0x0b, 0x0, HDA_INPUT),
232-
233-
HDA_CODEC_VOLUME("Internal Mic Boost Volume", 0x19, 0, HDA_INPUT),
234-
HDA_CODEC_VOLUME("Internal Mic Playback Volume", 0x0b, 0x1, HDA_INPUT),
235-
HDA_CODEC_MUTE("Internal Mic Playback Switch", 0x0b, 0x1, HDA_INPUT),
236-
{ } /* end */
237-
};
238-
239223
static const struct snd_kcontrol_new alc662_eeepc_ep20_mixer[] = {
240224
ALC262_HIPPO_MASTER_SWITCH,
241225
HDA_CODEC_VOLUME("Front Playback Volume", 0x02, 0x0, HDA_OUTPUT),
@@ -514,12 +498,6 @@ static const struct hda_verb alc662_sue_init_verbs[] = {
514498
{}
515499
};
516500

517-
static const struct hda_verb alc662_eeepc_sue_init_verbs[] = {
518-
{0x18, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC_MIC_EVENT},
519-
{0x1b, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC_HP_EVENT},
520-
{}
521-
};
522-
523501
/* Set Unsolicited Event*/
524502
static const struct hda_verb alc662_eeepc_ep20_sue_init_verbs[] = {
525503
{0x1b, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
@@ -703,16 +681,6 @@ static void alc662_lenovo_101e_setup(struct hda_codec *codec)
703681
spec->automute_mode = ALC_AUTOMUTE_AMP;
704682
}
705683

706-
static void alc662_eeepc_setup(struct hda_codec *codec)
707-
{
708-
struct alc_spec *spec = codec->spec;
709-
710-
alc262_hippo1_setup(codec);
711-
spec->ext_mic_pin = 0x18;
712-
spec->int_mic_pin = 0x19;
713-
spec->auto_mic = 1;
714-
}
715-
716684
static void alc662_eeepc_ep20_setup(struct hda_codec *codec)
717685
{
718686
struct alc_spec *spec = codec->spec;
@@ -894,9 +862,7 @@ static const char * const alc662_models[ALC662_MODEL_LAST] = {
894862
[ALC662_3ST_6ch] = "3stack-6ch",
895863
[ALC662_5ST_DIG] = "5stack-dig",
896864
[ALC662_LENOVO_101E] = "lenovo-101e",
897-
[ALC662_ASUS_EEEPC_P701] = "eeepc-p701",
898865
[ALC662_ASUS_EEEPC_EP20] = "eeepc-ep20",
899-
[ALC662_ECS] = "ecs",
900866
[ALC663_ASUS_M51VA] = "m51va",
901867
[ALC663_ASUS_G71V] = "g71v",
902868
[ALC663_ASUS_H13] = "h13",
@@ -913,7 +879,6 @@ static const char * const alc662_models[ALC662_MODEL_LAST] = {
913879
};
914880

915881
static const struct snd_pci_quirk alc662_cfg_tbl[] = {
916-
SND_PCI_QUIRK(0x1019, 0x9087, "ECS", ALC662_ECS),
917882
SND_PCI_QUIRK(0x1043, 0x1000, "ASUS N50Vm", ALC663_ASUS_MODE1),
918883
SND_PCI_QUIRK(0x1043, 0x1092, "ASUS NB", ALC663_ASUS_MODE3),
919884
SND_PCI_QUIRK(0x1043, 0x1173, "ASUS K73Jn", ALC663_ASUS_MODE1),
@@ -971,9 +936,7 @@ static const struct snd_pci_quirk alc662_cfg_tbl[] = {
971936
SND_PCI_QUIRK(0x1043, 0x19e3, "ASUS NB", ALC663_ASUS_MODE1),
972937
SND_PCI_QUIRK(0x1043, 0x19f3, "ASUS NB", ALC663_ASUS_MODE4),
973938
SND_PCI_QUIRK(0x1043, 0x8290, "ASUS P5GC-MX", ALC662_3ST_6ch_DIG),
974-
SND_PCI_QUIRK(0x1043, 0x82a1, "ASUS Eeepc", ALC662_ASUS_EEEPC_P701),
975939
SND_PCI_QUIRK(0x1043, 0x82d1, "ASUS Eeepc EP20", ALC662_ASUS_EEEPC_EP20),
976-
SND_PCI_QUIRK(0x105b, 0x0cd6, "Foxconn", ALC662_ECS),
977940
SND_PCI_QUIRK(0x105b, 0x0d47, "Foxconn 45CMX/45GMX/45CMX-K",
978941
ALC662_3ST_6ch_DIG),
979942
SND_PCI_QUIRK(0x1179, 0xff6e, "Toshiba NB20x", ALC662_AUTO),
@@ -1050,19 +1013,6 @@ static const struct alc_config_preset alc662_presets[] = {
10501013
.setup = alc662_lenovo_101e_setup,
10511014
.init_hook = alc_inithook,
10521015
},
1053-
[ALC662_ASUS_EEEPC_P701] = {
1054-
.mixers = { alc662_eeepc_p701_mixer },
1055-
.init_verbs = { alc662_init_verbs,
1056-
alc662_eapd_init_verbs,
1057-
alc662_eeepc_sue_init_verbs },
1058-
.num_dacs = ARRAY_SIZE(alc662_dac_nids),
1059-
.dac_nids = alc662_dac_nids,
1060-
.num_channel_mode = ARRAY_SIZE(alc662_3ST_2ch_modes),
1061-
.channel_mode = alc662_3ST_2ch_modes,
1062-
.unsol_event = alc_sku_unsol_event,
1063-
.setup = alc662_eeepc_setup,
1064-
.init_hook = alc_inithook,
1065-
},
10661016
[ALC662_ASUS_EEEPC_EP20] = {
10671017
.mixers = { alc662_eeepc_ep20_mixer,
10681018
alc662_chmode_mixer },
@@ -1078,19 +1028,6 @@ static const struct alc_config_preset alc662_presets[] = {
10781028
.setup = alc662_eeepc_ep20_setup,
10791029
.init_hook = alc_inithook,
10801030
},
1081-
[ALC662_ECS] = {
1082-
.mixers = { alc662_ecs_mixer },
1083-
.init_verbs = { alc662_init_verbs,
1084-
alc662_eapd_init_verbs,
1085-
alc662_ecs_init_verbs },
1086-
.num_dacs = ARRAY_SIZE(alc662_dac_nids),
1087-
.dac_nids = alc662_dac_nids,
1088-
.num_channel_mode = ARRAY_SIZE(alc662_3ST_2ch_modes),
1089-
.channel_mode = alc662_3ST_2ch_modes,
1090-
.unsol_event = alc_sku_unsol_event,
1091-
.setup = alc662_eeepc_setup,
1092-
.init_hook = alc_inithook,
1093-
},
10941031
[ALC663_ASUS_M51VA] = {
10951032
.mixers = { alc663_m51va_mixer },
10961033
.init_verbs = { alc662_init_verbs,

‎sound/pci/hda/patch_realtek.c‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5123,6 +5123,7 @@ enum {
51235123
ALC662_FIXUP_CZC_P10T,
51245124
ALC662_FIXUP_SKU_IGNORE,
51255125
ALC662_FIXUP_HP_RP5800,
5126+
ALC662_FIXUP_ECS,
51265127
};
51275128

51285129
static const struct alc_fixup alc662_fixups[] = {
@@ -5164,13 +5165,25 @@ static const struct alc_fixup alc662_fixups[] = {
51645165
.chained = true,
51655166
.chain_id = ALC662_FIXUP_SKU_IGNORE
51665167
},
5168+
[ALC662_FIXUP_ECS] = {
5169+
.type = ALC_FIXUP_PINS,
5170+
.v.pins = (const struct alc_pincfg[]) {
5171+
{ 0x14, 0x99130110 }, /* speaker */
5172+
{ 0x18, 0x01a19820 }, /* mic */
5173+
{ 0x19, 0x99a3092f }, /* int-mic */
5174+
{ 0x1b, 0x0121401f }, /* HP out */
5175+
{ }
5176+
},
5177+
},
51675178
};
51685179

51695180
static const struct snd_pci_quirk alc662_fixup_tbl[] = {
5181+
SND_PCI_QUIRK(0x1019, 0x9087, "ECS", ALC662_FIXUP_ECS),
51705182
SND_PCI_QUIRK(0x1025, 0x0308, "Acer Aspire 8942G", ALC662_FIXUP_ASPIRE),
51715183
SND_PCI_QUIRK(0x1025, 0x031c, "Gateway NV79", ALC662_FIXUP_SKU_IGNORE),
51725184
SND_PCI_QUIRK(0x1025, 0x038b, "Acer Aspire 8943G", ALC662_FIXUP_ASPIRE),
51735185
SND_PCI_QUIRK(0x103c, 0x1632, "HP RP5800", ALC662_FIXUP_HP_RP5800),
5186+
SND_PCI_QUIRK(0x105b, 0x0cd6, "Foxconn", ALC662_FIXUP_ECS),
51745187
SND_PCI_QUIRK(0x144d, 0xc051, "Samsung R720", ALC662_FIXUP_IDEAPAD),
51755188
SND_PCI_QUIRK(0x17aa, 0x38af, "Lenovo Ideapad Y550P", ALC662_FIXUP_IDEAPAD),
51765189
SND_PCI_QUIRK(0x17aa, 0x3a0d, "Lenovo Ideapad Y550", ALC662_FIXUP_IDEAPAD),

0 commit comments

Comments
 (0)