aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-04-07 06:34:26 -0400
committerTakashi Iwai <tiwai@suse.de>2011-04-07 06:49:10 -0400
commit35ffe11587fb6e93725d420aa17cf1e7a6bf427f (patch)
tree886004f5e3e3bbeb4e6faec5295de540811a7fcf /sound/pci
parent10696aa0e56b29c6f3ce27081092785c564423e1 (diff)
ALSA: hda - Remove superfluous inits for ALC662 auto-parser
Since we now set up the connections and mutes dynamically in the auto-parser, all static initializations via alc662_init_verbs & co are no longer needed. Let's drop them. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_realtek.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index e5dfed35ca67..c22a7ca01997 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -17934,28 +17934,6 @@ static struct hda_verb alc662_eapd_init_verbs[] = {
17934 { } 17934 { }
17935}; 17935};
17936 17936
17937static struct hda_verb alc663_init_verbs[] = {
17938 {0x17, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
17939 {0x17, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE},
17940 {0x21, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
17941 {0x21, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE},
17942 {0x0f, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)},
17943 {0x0f, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)},
17944 { }
17945};
17946
17947static struct hda_verb alc272_init_verbs[] = {
17948 {0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN},
17949 {0x16, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_MUTE},
17950 {0x17, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
17951 {0x17, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE},
17952 {0x21, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT},
17953 {0x21, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE},
17954 {0x0f, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(0)},
17955 {0x0f, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(1)},
17956 { }
17957};
17958
17959static struct hda_verb alc662_sue_init_verbs[] = { 17937static struct hda_verb alc662_sue_init_verbs[] = {
17960 {0x14, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN|ALC880_FRONT_EVENT}, 17938 {0x14, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN|ALC880_FRONT_EVENT},
17961 {0x1b, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN|ALC880_HP_EVENT}, 17939 {0x1b, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN|ALC880_HP_EVENT},
@@ -19441,14 +19419,6 @@ static int alc662_parse_auto_config(struct hda_codec *codec)
19441 spec->num_mux_defs = 1; 19419 spec->num_mux_defs = 1;
19442 spec->input_mux = &spec->private_imux[0]; 19420 spec->input_mux = &spec->private_imux[0];
19443 19421
19444 add_verb(spec, alc662_init_verbs);
19445 if (codec->vendor_id == 0x10ec0272 || codec->vendor_id == 0x10ec0663 ||
19446 codec->vendor_id == 0x10ec0665 || codec->vendor_id == 0x10ec0670)
19447 add_verb(spec, alc663_init_verbs);
19448
19449 if (codec->vendor_id == 0x10ec0272)
19450 add_verb(spec, alc272_init_verbs);
19451
19452 err = alc_auto_add_mic_boost(codec); 19422 err = alc_auto_add_mic_boost(codec);
19453 if (err < 0) 19423 if (err < 0)
19454 return err; 19424 return err;