aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorClaudio Matsuoka <cmatsuoka@gmail.com>2007-07-13 08:36:19 -0400
committerJaroslav Kysela <perex@suse.cz>2007-07-20 05:11:53 -0400
commit4723c022e1960abb5608b37ef61443da7d6296bb (patch)
tree12874e8f5e5fbcb521b3168e18ee60090ade5224 /sound/pci/hda/patch_realtek.c
parente87f97a3e842a816f30f087d5bfac68ef2afaef2 (diff)
[ALSA] hda-codec - Rename HP model-specific quirks
Rename ALC888_HP_NETTLE and ALC888_HP_LUCKNOW models to the more generic names ALC888_6ST_HP and ALC888_3ST_HP since HP seems to be consistent in the wiring of their 3stack and 6stack ALC888-based systems. Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index fa259a98ea7..d427c32301f 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -172,8 +172,8 @@ enum {
172 ALC883_LENOVO_101E_2ch, 172 ALC883_LENOVO_101E_2ch,
173 ALC883_LENOVO_NB0763, 173 ALC883_LENOVO_NB0763,
174 ALC888_LENOVO_MS7195_DIG, 174 ALC888_LENOVO_MS7195_DIG,
175 ALC888_HP_NETTLE, 175 ALC888_6ST_HP,
176 ALC888_HP_LUCKNOW, 176 ALC888_3ST_HP,
177 ALC883_AUTO, 177 ALC883_AUTO,
178 ALC883_MODEL_LAST, 178 ALC883_MODEL_LAST,
179}; 179};
@@ -6084,7 +6084,7 @@ static struct snd_kcontrol_new alc883_medion_md2_mixer[] = {
6084 { } /* end */ 6084 { } /* end */
6085}; 6085};
6086 6086
6087static struct snd_kcontrol_new alc888_hp_nettle_mixer[] = { 6087static struct snd_kcontrol_new alc888_6st_hp_mixer[] = {
6088 HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), 6088 HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT),
6089 HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT), 6089 HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT),
6090 HDA_CODEC_VOLUME("Surround Playback Volume", 0x0e, 0x0, HDA_OUTPUT), 6090 HDA_CODEC_VOLUME("Surround Playback Volume", 0x0e, 0x0, HDA_OUTPUT),
@@ -6124,7 +6124,7 @@ static struct snd_kcontrol_new alc888_hp_nettle_mixer[] = {
6124 { } /* end */ 6124 { } /* end */
6125}; 6125};
6126 6126
6127static struct snd_kcontrol_new alc888_hp_lucknow_mixer[] = { 6127static struct snd_kcontrol_new alc888_3st_hp_mixer[] = {
6128 HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT), 6128 HDA_CODEC_VOLUME("Front Playback Volume", 0x0c, 0x0, HDA_OUTPUT),
6129 HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT), 6129 HDA_BIND_MUTE("Front Playback Switch", 0x0c, 2, HDA_INPUT),
6130 HDA_CODEC_VOLUME("Surround Playback Volume", 0x0e, 0x0, HDA_OUTPUT), 6130 HDA_CODEC_VOLUME("Surround Playback Volume", 0x0e, 0x0, HDA_OUTPUT),
@@ -6293,7 +6293,7 @@ static struct hda_verb alc888_lenovo_ms7195_verbs[] = {
6293 { } /* end */ 6293 { } /* end */
6294}; 6294};
6295 6295
6296static struct hda_verb alc888_hp_nettle_verbs[] = { 6296static struct hda_verb alc888_6st_hp_verbs[] = {
6297 {0x14, AC_VERB_SET_CONNECT_SEL, 0x00}, /* Front: output 0 (0x0c) */ 6297 {0x14, AC_VERB_SET_CONNECT_SEL, 0x00}, /* Front: output 0 (0x0c) */
6298 {0x15, AC_VERB_SET_CONNECT_SEL, 0x02}, /* Rear : output 2 (0x0e) */ 6298 {0x15, AC_VERB_SET_CONNECT_SEL, 0x02}, /* Rear : output 2 (0x0e) */
6299 {0x16, AC_VERB_SET_CONNECT_SEL, 0x01}, /* CLFE : output 1 (0x0d) */ 6299 {0x16, AC_VERB_SET_CONNECT_SEL, 0x01}, /* CLFE : output 1 (0x0d) */
@@ -6301,14 +6301,14 @@ static struct hda_verb alc888_hp_nettle_verbs[] = {
6301 { } 6301 { }
6302}; 6302};
6303 6303
6304static struct hda_verb alc888_hp_lucknow_verbs[] = { 6304static struct hda_verb alc888_3st_hp_verbs[] = {
6305 {0x14, AC_VERB_SET_CONNECT_SEL, 0x00}, /* Front: output 0 (0x0c) */ 6305 {0x14, AC_VERB_SET_CONNECT_SEL, 0x00}, /* Front: output 0 (0x0c) */
6306 {0x18, AC_VERB_SET_CONNECT_SEL, 0x01}, /* Rear : output 1 (0x0d) */ 6306 {0x18, AC_VERB_SET_CONNECT_SEL, 0x01}, /* Rear : output 1 (0x0d) */
6307 {0x16, AC_VERB_SET_CONNECT_SEL, 0x02}, /* CLFE : output 2 (0x0e) */ 6307 {0x16, AC_VERB_SET_CONNECT_SEL, 0x02}, /* CLFE : output 2 (0x0e) */
6308 { } 6308 { }
6309}; 6309};
6310 6310
6311static struct hda_verb alc888_hp_lucknow_2ch_init[] = { 6311static struct hda_verb alc888_3st_hp_2ch_init[] = {
6312 { 0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80 }, 6312 { 0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_VREF80 },
6313 { 0x18, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE }, 6313 { 0x18, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE },
6314 { 0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN }, 6314 { 0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN },
@@ -6316,7 +6316,7 @@ static struct hda_verb alc888_hp_lucknow_2ch_init[] = {
6316 { } 6316 { }
6317}; 6317};
6318 6318
6319static struct hda_verb alc888_hp_lucknow_6ch_init[] = { 6319static struct hda_verb alc888_3st_hp_6ch_init[] = {
6320 { 0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT }, 6320 { 0x18, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
6321 { 0x18, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE }, 6321 { 0x18, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE },
6322 { 0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT }, 6322 { 0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT },
@@ -6324,9 +6324,9 @@ static struct hda_verb alc888_hp_lucknow_6ch_init[] = {
6324 { } 6324 { }
6325}; 6325};
6326 6326
6327static struct hda_channel_mode alc888_hp_lucknow_modes[2] = { 6327static struct hda_channel_mode alc888_3st_hp_modes[2] = {
6328 { 2, alc888_hp_lucknow_2ch_init }, 6328 { 2, alc888_3st_hp_2ch_init },
6329 { 6, alc888_hp_lucknow_6ch_init }, 6329 { 6, alc888_3st_hp_6ch_init },
6330}; 6330};
6331 6331
6332/* toggle front-jack and RCA according to the hp-jack state */ 6332/* toggle front-jack and RCA according to the hp-jack state */
@@ -6571,8 +6571,8 @@ static const char *alc883_models[ALC883_MODEL_LAST] = {
6571 [ALC883_LENOVO_101E_2ch] = "lenovo-101e", 6571 [ALC883_LENOVO_101E_2ch] = "lenovo-101e",
6572 [ALC883_LENOVO_NB0763] = "lenovo-nb0763", 6572 [ALC883_LENOVO_NB0763] = "lenovo-nb0763",
6573 [ALC888_LENOVO_MS7195_DIG] = "lenovo-ms7195-dig", 6573 [ALC888_LENOVO_MS7195_DIG] = "lenovo-ms7195-dig",
6574 [ALC888_HP_NETTLE] = "hp-nettle", 6574 [ALC888_6ST_HP] = "6stack-hp",
6575 [ALC888_HP_LUCKNOW] = "hp-lucknow", 6575 [ALC888_3ST_HP] = "3stack-hp",
6576 [ALC883_AUTO] = "auto", 6576 [ALC883_AUTO] = "auto",
6577}; 6577};
6578 6578
@@ -6608,9 +6608,9 @@ static struct snd_pci_quirk alc883_cfg_tbl[] = {
6608 SND_PCI_QUIRK(0x17aa, 0x101e, "Lenovo 101e", ALC883_LENOVO_101E_2ch), 6608 SND_PCI_QUIRK(0x17aa, 0x101e, "Lenovo 101e", ALC883_LENOVO_101E_2ch),
6609 SND_PCI_QUIRK(0x17aa, 0x3bfd, "Lenovo NB0763", ALC883_LENOVO_NB0763), 6609 SND_PCI_QUIRK(0x17aa, 0x3bfd, "Lenovo NB0763", ALC883_LENOVO_NB0763),
6610 SND_PCI_QUIRK(0x17aa, 0x2085, "Lenovo NB0763", ALC883_LENOVO_NB0763), 6610 SND_PCI_QUIRK(0x17aa, 0x2085, "Lenovo NB0763", ALC883_LENOVO_NB0763),
6611 SND_PCI_QUIRK(0x103c, 0x2a61, "HP Nettle", ALC888_HP_NETTLE), 6611 SND_PCI_QUIRK(0x103c, 0x2a61, "HP Nettle", ALC888_6ST_HP),
6612 SND_PCI_QUIRK(0x103c, 0x2a60, "HP Lucknow", ALC888_HP_LUCKNOW), 6612 SND_PCI_QUIRK(0x103c, 0x2a60, "HP Lucknow", ALC888_3ST_HP),
6613 SND_PCI_QUIRK(0x103c, 0x2a4f, "HP Samba", ALC888_HP_LUCKNOW), 6613 SND_PCI_QUIRK(0x103c, 0x2a4f, "HP Samba", ALC888_3ST_HP),
6614 SND_PCI_QUIRK(0x17c0, 0x4071, "MEDION MD2", ALC883_MEDION_MD2), 6614 SND_PCI_QUIRK(0x17c0, 0x4071, "MEDION MD2", ALC883_MEDION_MD2),
6615 {} 6615 {}
6616}; 6616};
@@ -6795,9 +6795,9 @@ static struct alc_config_preset alc883_presets[] = {
6795 .unsol_event = alc883_lenovo_ms7195_unsol_event, 6795 .unsol_event = alc883_lenovo_ms7195_unsol_event,
6796 .init_hook = alc888_lenovo_ms7195_front_automute, 6796 .init_hook = alc888_lenovo_ms7195_front_automute,
6797 }, 6797 },
6798 [ALC888_HP_NETTLE] = { 6798 [ALC888_6ST_HP] = {
6799 .mixers = { alc888_hp_nettle_mixer, alc883_chmode_mixer }, 6799 .mixers = { alc888_6st_hp_mixer, alc883_chmode_mixer },
6800 .init_verbs = { alc883_init_verbs, alc888_hp_nettle_verbs }, 6800 .init_verbs = { alc883_init_verbs, alc888_6st_hp_verbs },
6801 .num_dacs = ARRAY_SIZE(alc883_dac_nids), 6801 .num_dacs = ARRAY_SIZE(alc883_dac_nids),
6802 .dac_nids = alc883_dac_nids, 6802 .dac_nids = alc883_dac_nids,
6803 .dig_out_nid = ALC883_DIGOUT_NID, 6803 .dig_out_nid = ALC883_DIGOUT_NID,
@@ -6808,15 +6808,15 @@ static struct alc_config_preset alc883_presets[] = {
6808 .channel_mode = alc883_sixstack_modes, 6808 .channel_mode = alc883_sixstack_modes,
6809 .input_mux = &alc883_capture_source, 6809 .input_mux = &alc883_capture_source,
6810 }, 6810 },
6811 [ALC888_HP_LUCKNOW] = { 6811 [ALC888_3ST_HP] = {
6812 .mixers = { alc888_hp_lucknow_mixer, alc883_chmode_mixer }, 6812 .mixers = { alc888_3st_hp_mixer, alc883_chmode_mixer },
6813 .init_verbs = { alc883_init_verbs, alc888_hp_lucknow_verbs }, 6813 .init_verbs = { alc883_init_verbs, alc888_3st_hp_verbs },
6814 .num_dacs = ARRAY_SIZE(alc883_dac_nids), 6814 .num_dacs = ARRAY_SIZE(alc883_dac_nids),
6815 .dac_nids = alc883_dac_nids, 6815 .dac_nids = alc883_dac_nids,
6816 .num_adc_nids = ARRAY_SIZE(alc883_adc_nids), 6816 .num_adc_nids = ARRAY_SIZE(alc883_adc_nids),
6817 .adc_nids = alc883_adc_nids, 6817 .adc_nids = alc883_adc_nids,
6818 .num_channel_mode = ARRAY_SIZE(alc888_hp_lucknow_modes), 6818 .num_channel_mode = ARRAY_SIZE(alc888_3st_hp_modes),
6819 .channel_mode = alc888_hp_lucknow_modes, 6819 .channel_mode = alc888_3st_hp_modes,
6820 .need_dac_fix = 1, 6820 .need_dac_fix = 1,
6821 .input_mux = &alc883_capture_source, 6821 .input_mux = &alc883_capture_source,
6822 }, 6822 },