diff options
-rw-r--r-- | Documentation/sound/alsa/HD-Audio-Models.txt | 1 | ||||
-rw-r--r-- | sound/pci/hda/patch_realtek.c | 42 |
2 files changed, 2 insertions, 41 deletions
diff --git a/Documentation/sound/alsa/HD-Audio-Models.txt b/Documentation/sound/alsa/HD-Audio-Models.txt index 37c6aad5e590..16ae4300c747 100644 --- a/Documentation/sound/alsa/HD-Audio-Models.txt +++ b/Documentation/sound/alsa/HD-Audio-Models.txt | |||
@@ -149,7 +149,6 @@ ALC882/883/885/888/889 | |||
149 | acer-aspire-7730g Acer Aspire 7730G | 149 | acer-aspire-7730g Acer Aspire 7730G |
150 | acer-aspire-8930g Acer Aspire 8930G | 150 | acer-aspire-8930g Acer Aspire 8930G |
151 | medion Medion Laptops | 151 | medion Medion Laptops |
152 | medion-md2 Medion MD2 | ||
153 | targa-dig Targa/MSI | 152 | targa-dig Targa/MSI |
154 | targa-2ch-dig Targa/MSI with 2-channel | 153 | targa-2ch-dig Targa/MSI with 2-channel |
155 | targa-8ch-dig Targa/MSI with 8-channel (MSI GX620) | 154 | targa-8ch-dig Targa/MSI with 8-channel (MSI GX620) |
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index f0af8cfab410..65a9edeee9ea 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
@@ -231,7 +231,6 @@ enum { | |||
231 | ALC888_ACER_ASPIRE_8930G, | 231 | ALC888_ACER_ASPIRE_8930G, |
232 | ALC888_ACER_ASPIRE_7730G, | 232 | ALC888_ACER_ASPIRE_7730G, |
233 | ALC883_MEDION, | 233 | ALC883_MEDION, |
234 | ALC883_MEDION_MD2, | ||
235 | ALC883_MEDION_WIM2160, | 234 | ALC883_MEDION_WIM2160, |
236 | ALC883_LAPTOP_EAPD, | 235 | ALC883_LAPTOP_EAPD, |
237 | ALC883_LENOVO_101E_2ch, | 236 | ALC883_LENOVO_101E_2ch, |
@@ -8989,19 +8988,6 @@ static struct snd_kcontrol_new alc883_lenovo_nb0763_mixer[] = { | |||
8989 | { } /* end */ | 8988 | { } /* end */ |
8990 | }; | 8989 | }; |
8991 | 8990 | ||
8992 | static struct snd_kcontrol_new alc883_medion_md2_mixer[] = { | ||
8993 | HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), | ||
8994 | HDA_CODEC_MUTE("Headphone Playback Switch", 0x14, 0x0, HDA_OUTPUT), | ||
8995 | HDA_CODEC_MUTE("Front Playback Switch", 0x15, 0x0, HDA_OUTPUT), | ||
8996 | HDA_CODEC_VOLUME("CD Playback Volume", 0x0b, 0x04, HDA_INPUT), | ||
8997 | HDA_CODEC_MUTE("CD Playback Switch", 0x0b, 0x04, HDA_INPUT), | ||
8998 | HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x0, HDA_INPUT), | ||
8999 | HDA_CODEC_MUTE("Mic Playback Switch", 0x0b, 0x0, HDA_INPUT), | ||
9000 | HDA_CODEC_VOLUME("Line Playback Volume", 0x0b, 0x02, HDA_INPUT), | ||
9001 | HDA_CODEC_MUTE("Line Playback Switch", 0x0b, 0x02, HDA_INPUT), | ||
9002 | { } /* end */ | ||
9003 | }; | ||
9004 | |||
9005 | static struct snd_kcontrol_new alc883_medion_wim2160_mixer[] = { | 8991 | static struct snd_kcontrol_new alc883_medion_wim2160_mixer[] = { |
9006 | HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), | 8992 | HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), |
9007 | HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT), | 8993 | HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT), |
@@ -9443,18 +9429,8 @@ static void alc883_lenovo_ms7195_unsol_event(struct hda_codec *codec, | |||
9443 | alc888_lenovo_ms7195_rca_automute(codec); | 9429 | alc888_lenovo_ms7195_rca_automute(codec); |
9444 | } | 9430 | } |
9445 | 9431 | ||
9446 | static struct hda_verb alc883_medion_md2_verbs[] = { | ||
9447 | {0x0c, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)}, | ||
9448 | {0x0c, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)}, | ||
9449 | |||
9450 | {0x14, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, | ||
9451 | |||
9452 | {0x14, AC_VERB_SET_UNSOLICITED_ENABLE, ALC880_HP_EVENT | AC_USRSP_EN}, | ||
9453 | { } /* end */ | ||
9454 | }; | ||
9455 | |||
9456 | /* toggle speaker-output according to the hp-jack state */ | 9432 | /* toggle speaker-output according to the hp-jack state */ |
9457 | static void alc883_medion_md2_setup(struct hda_codec *codec) | 9433 | static void alc883_lenovo_nb0763_setup(struct hda_codec *codec) |
9458 | { | 9434 | { |
9459 | struct alc_spec *spec = codec->spec; | 9435 | struct alc_spec *spec = codec->spec; |
9460 | 9436 | ||
@@ -9739,7 +9715,6 @@ static const char *alc882_models[ALC882_MODEL_LAST] = { | |||
9739 | [ALC888_ACER_ASPIRE_8930G] = "acer-aspire-8930g", | 9715 | [ALC888_ACER_ASPIRE_8930G] = "acer-aspire-8930g", |
9740 | [ALC888_ACER_ASPIRE_7730G] = "acer-aspire-7730g", | 9716 | [ALC888_ACER_ASPIRE_7730G] = "acer-aspire-7730g", |
9741 | [ALC883_MEDION] = "medion", | 9717 | [ALC883_MEDION] = "medion", |
9742 | [ALC883_MEDION_MD2] = "medion-md2", | ||
9743 | [ALC883_MEDION_WIM2160] = "medion-wim2160", | 9718 | [ALC883_MEDION_WIM2160] = "medion-wim2160", |
9744 | [ALC883_LAPTOP_EAPD] = "laptop-eapd", | 9719 | [ALC883_LAPTOP_EAPD] = "laptop-eapd", |
9745 | [ALC883_LENOVO_101E_2ch] = "lenovo-101e", | 9720 | [ALC883_LENOVO_101E_2ch] = "lenovo-101e", |
@@ -10387,19 +10362,6 @@ static struct alc_config_preset alc882_presets[] = { | |||
10387 | .channel_mode = alc883_sixstack_modes, | 10362 | .channel_mode = alc883_sixstack_modes, |
10388 | .input_mux = &alc883_capture_source, | 10363 | .input_mux = &alc883_capture_source, |
10389 | }, | 10364 | }, |
10390 | [ALC883_MEDION_MD2] = { | ||
10391 | .mixers = { alc883_medion_md2_mixer}, | ||
10392 | .init_verbs = { alc883_init_verbs, alc883_medion_md2_verbs}, | ||
10393 | .num_dacs = ARRAY_SIZE(alc883_dac_nids), | ||
10394 | .dac_nids = alc883_dac_nids, | ||
10395 | .dig_out_nid = ALC883_DIGOUT_NID, | ||
10396 | .num_channel_mode = ARRAY_SIZE(alc883_3ST_2ch_modes), | ||
10397 | .channel_mode = alc883_3ST_2ch_modes, | ||
10398 | .input_mux = &alc883_capture_source, | ||
10399 | .unsol_event = alc_automute_amp_unsol_event, | ||
10400 | .setup = alc883_medion_md2_setup, | ||
10401 | .init_hook = alc_automute_amp, | ||
10402 | }, | ||
10403 | [ALC883_MEDION_WIM2160] = { | 10365 | [ALC883_MEDION_WIM2160] = { |
10404 | .mixers = { alc883_medion_wim2160_mixer }, | 10366 | .mixers = { alc883_medion_wim2160_mixer }, |
10405 | .init_verbs = { alc883_init_verbs, alc883_medion_wim2160_verbs }, | 10367 | .init_verbs = { alc883_init_verbs, alc883_medion_wim2160_verbs }, |
@@ -10476,7 +10438,7 @@ static struct alc_config_preset alc882_presets[] = { | |||
10476 | .need_dac_fix = 1, | 10438 | .need_dac_fix = 1, |
10477 | .input_mux = &alc883_lenovo_nb0763_capture_source, | 10439 | .input_mux = &alc883_lenovo_nb0763_capture_source, |
10478 | .unsol_event = alc_automute_amp_unsol_event, | 10440 | .unsol_event = alc_automute_amp_unsol_event, |
10479 | .setup = alc883_medion_md2_setup, | 10441 | .setup = alc883_lenovo_nb0763_setup, |
10480 | .init_hook = alc_automute_amp, | 10442 | .init_hook = alc_automute_amp, |
10481 | }, | 10443 | }, |
10482 | [ALC888_LENOVO_MS7195_DIG] = { | 10444 | [ALC888_LENOVO_MS7195_DIG] = { |