aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTobin Davis <gruemaster@email.uophx.edu>2007-04-24 11:56:55 -0400
committerJaroslav Kysela <perex@suse.cz>2007-05-11 10:56:10 -0400
commitb7589ceba035d3f5f1baf69cc67991abd2ce6688 (patch)
tree6116c0e2db25b9391467c6e36df8dcb05d7b3172 /sound
parentc5a30f85fd56c06efddbe6f4885c7968245c2d8a (diff)
[ALSA] HDA-Intel: Fix headphone squeal on Conexant audio
This patch fixes the headphone squeal and noise on Conexant CX20551 (Waikiki) audio. Signed-off-by: Tobin Davis <gruemaster@email.uophx.edu> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_conexant.c23
1 files changed, 6 insertions, 17 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c
index 2349b5eb5aaa..ddaa811887a6 100644
--- a/sound/pci/hda/patch_conexant.c
+++ b/sound/pci/hda/patch_conexant.c
@@ -993,22 +993,10 @@ static struct snd_kcontrol_new cxt5047_mixers[] = {
993 HDA_CODEC_MUTE("PCM Switch", 0x10, 0x00, HDA_OUTPUT), 993 HDA_CODEC_MUTE("PCM Switch", 0x10, 0x00, HDA_OUTPUT),
994 HDA_CODEC_VOLUME("PCM-2 Volume", 0x1c, 0x00, HDA_OUTPUT), 994 HDA_CODEC_VOLUME("PCM-2 Volume", 0x1c, 0x00, HDA_OUTPUT),
995 HDA_CODEC_MUTE("PCM-2 Switch", 0x1c, 0x00, HDA_OUTPUT), 995 HDA_CODEC_MUTE("PCM-2 Switch", 0x1c, 0x00, HDA_OUTPUT),
996 { 996 HDA_CODEC_VOLUME("Speaker Playback Volume", 0x1d, 0x00, HDA_OUTPUT),
997 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 997 HDA_CODEC_MUTE("Speaker Playback Switch", 0x1d, 0x00, HDA_OUTPUT),
998 .name = "Master Playback Volume", 998 HDA_CODEC_VOLUME("Headphone Playback Volume", 0x13, 0x00, HDA_OUTPUT),
999 .info = snd_hda_mixer_amp_volume_info, 999 HDA_CODEC_MUTE("Headphone Playback Switch", 0x13, 0x00, HDA_OUTPUT),
1000 .get = snd_hda_mixer_amp_volume_get,
1001 .put = cxt5047_hp_master_vol_put,
1002 .private_value = HDA_COMPOSE_AMP_VAL(0x13, 3, 0, HDA_OUTPUT),
1003 },
1004 {
1005 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
1006 .name = "Master Playback Switch",
1007 .info = cxt_eapd_info,
1008 .get = cxt_eapd_get,
1009 .put = cxt5047_hp_master_sw_put,
1010 .private_value = 0x13,
1011 },
1012 1000
1013 {} 1001 {}
1014}; 1002};
@@ -1079,7 +1067,8 @@ static struct hda_verb cxt5047_init_verbs[] = {
1079 {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN|AC_PINCTL_VREF_50 }, 1067 {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN|AC_PINCTL_VREF_50 },
1080 {0x17, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN|AC_PINCTL_VREF_50 }, 1068 {0x17, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN|AC_PINCTL_VREF_50 },
1081 /* HP, Speaker */ 1069 /* HP, Speaker */
1082 {0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_OUT }, 1070 {0x13, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP },
1071 {0x13, AC_VERB_SET_CONNECT_SEL,0x1},
1083 {0x1d, AC_VERB_SET_CONNECT_SEL,0x0}, 1072 {0x1d, AC_VERB_SET_CONNECT_SEL,0x0},
1084 /* Record selector: Mic */ 1073 /* Record selector: Mic */
1085 {0x12, AC_VERB_SET_CONNECT_SEL,0x03}, 1074 {0x12, AC_VERB_SET_CONNECT_SEL,0x03},