From: Greg Kroah-Hartman Date: Mon, 10 Jul 2017 17:08:20 +0000 (+0200) Subject: 4.11-stable patches X-Git-Tag: v4.9.37~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=169bcc058b4b1edf724982fb895199cce1014741;p=thirdparty%2Fkernel%2Fstable-queue.git 4.11-stable patches added patches: rt286-add-thinkpad-helix-2-to-force_combo_jack_table.patch --- diff --git a/queue-4.11/rt286-add-thinkpad-helix-2-to-force_combo_jack_table.patch b/queue-4.11/rt286-add-thinkpad-helix-2-to-force_combo_jack_table.patch new file mode 100644 index 00000000000..74cc1655468 --- /dev/null +++ b/queue-4.11/rt286-add-thinkpad-helix-2-to-force_combo_jack_table.patch @@ -0,0 +1,52 @@ +From fe0dfd6358a17c79bd7d6996af7512ba452a7059 Mon Sep 17 00:00:00 2001 +From: Yifeng Li +Date: Thu, 4 May 2017 01:34:14 +0800 +Subject: rt286: add Thinkpad Helix 2 to force_combo_jack_table + +From: Yifeng Li + +commit fe0dfd6358a17c79bd7d6996af7512ba452a7059 upstream. + +Thinkpad Helix 2 is a tablet PC, the audio is powered by Core M +broadwell-audio and rt286 codec. For all versions of Linux kernel, +the stereo output doesn't work properly when earphones are plugged +in, the sound was coming out from both channels even if the audio +contains only the left or right channel. Furthermore, if a music +recorded in stereo is played, the two channels cancle out each other +out, as a result, no voice but only distorted background music can be +heard, like a sound card with builtin a Karaoke sount effect. + +Apparently this tablet uses a combo jack with polarity incorrectly +set by rt286 driver. This patch adds DMI information of Thinkpad Helix 2 +to force_combo_jack_table[] and the issue is resolved. The microphone +input doesn't work regardless to the presence of this patch and still +needs help from other developers to investigate. + +This is my first patch to LKML directly, sorry for CC-ing too many +people here. + +Link: https://bugzilla.kernel.org/show_bug.cgi?id=93841 +Signed-off-by: Yifeng Li +Signed-off-by: Mark Brown +Signed-off-by: Greg Kroah-Hartman + +--- + sound/soc/codecs/rt286.c | 7 +++++++ + 1 file changed, 7 insertions(+) + +--- a/sound/soc/codecs/rt286.c ++++ b/sound/soc/codecs/rt286.c +@@ -1108,6 +1108,13 @@ static const struct dmi_system_id force_ + DMI_MATCH(DMI_PRODUCT_NAME, "Kabylake Client platform") + } + }, ++ { ++ .ident = "Thinkpad Helix 2nd", ++ .matches = { ++ DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"), ++ DMI_MATCH(DMI_PRODUCT_VERSION, "ThinkPad Helix 2nd") ++ } ++ }, + + { } + }; diff --git a/queue-4.11/series b/queue-4.11/series index ca0198f8069..f972239a1ef 100644 --- a/queue-4.11/series +++ b/queue-4.11/series @@ -33,3 +33,4 @@ tpm-fix-a-kernel-memory-leak-in-tpm-sysfs.c.patch x86-uaccess-optimize-copy_user_enhanced_fast_string-for-short-strings.patch xen-avoid-deadlock-in-xenbus-driver.patch crypto-drbg-fixes-panic-in-wait_for_completion-call.patch +rt286-add-thinkpad-helix-2-to-force_combo_jack_table.patch