aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2013-11-13 03:39:08 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-11-29 14:11:46 -0500
commitb5c32fe75ce821a7a0ae1dd3f89c97f50a8a0304 (patch)
tree82284c23110b142b9c0b64a8dd2d87eeea64c0a4 /sound
parent320f9078dbc4f9f71c79084d77cfe4c03aaaf328 (diff)
ALSA: hda - Don't turn off EAPD for headphone on Lenovo N100
commit 7a3e6107f94344e65c35bfe62de6c096a7b48965 upstream. The only EAPD on AD1986A is on NID 0x1b where usually the speaker. But this doesn't control only the speaker amp but may influence on all outputs, e.g. Lenovo N100 laptop seems to have this issue. Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/patch_analog.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_analog.c b/sound/pci/hda/patch_analog.c
index d97f0d61a15b..e17b55a95bc5 100644
--- a/sound/pci/hda/patch_analog.c
+++ b/sound/pci/hda/patch_analog.c
@@ -1197,8 +1197,12 @@ static int alloc_ad_spec(struct hda_codec *codec)
1197static void ad_fixup_inv_jack_detect(struct hda_codec *codec, 1197static void ad_fixup_inv_jack_detect(struct hda_codec *codec,
1198 const struct hda_fixup *fix, int action) 1198 const struct hda_fixup *fix, int action)
1199{ 1199{
1200 if (action == HDA_FIXUP_ACT_PRE_PROBE) 1200 struct ad198x_spec *spec = codec->spec;
1201
1202 if (action == HDA_FIXUP_ACT_PRE_PROBE) {
1201 codec->inv_jack_detect = 1; 1203 codec->inv_jack_detect = 1;
1204 spec->gen.keep_eapd_on = 1;
1205 }
1202} 1206}
1203 1207
1204enum { 1208enum {