From: Greg Kroah-Hartman Date: Tue, 14 Apr 2015 13:03:02 +0000 (+0200) Subject: 3.19-stable patches X-Git-Tag: v3.10.75~28 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=21acd7153f2b916de5ee32d33f61bdb034677df0;p=thirdparty%2Fkernel%2Fstable-queue.git 3.19-stable patches added patches: alsa-bebob-fix-to-processing-in-big-endian-machine-for-sending-cue.patch alsa-hda-add-dock-support-for-thinkpad-t450s-17aa-5036.patch alsa-hda-add-one-more-node-in-the-eapd-supporting-candidate-list.patch alsa-hda-fix-headphone-pin-config-for-lifebook-t731.patch alsa-hda-realtek-make-more-stable-to-get-pin-sense-for-alc283.patch alsa-usb-creative-usb-x-fi-pro-sb1095-volume-knob-support.patch --- diff --git a/queue-3.19/alsa-bebob-fix-to-processing-in-big-endian-machine-for-sending-cue.patch b/queue-3.19/alsa-bebob-fix-to-processing-in-big-endian-machine-for-sending-cue.patch new file mode 100644 index 00000000000..c64c15982e3 --- /dev/null +++ b/queue-3.19/alsa-bebob-fix-to-processing-in-big-endian-machine-for-sending-cue.patch @@ -0,0 +1,42 @@ +From a053fc318bc5d28cd25168c948255fd48a29ea26 Mon Sep 17 00:00:00 2001 +From: Takashi Sakamoto +Date: Thu, 9 Apr 2015 01:15:03 +0900 +Subject: ALSA: bebob: fix to processing in big-endian machine for sending cue + +From: Takashi Sakamoto + +commit a053fc318bc5d28cd25168c948255fd48a29ea26 upstream. + +Some M-Audio devices require to receive bootup command just after +powering on, while codes in BeBoB driver doesn't work properly in +big-endian machine because the command should be aligned by +little-endian. + +This commit fixes this bug. This fix should go to stable kernel. + +Cc: Takayuki Shiroma +Signed-off-by: Takashi Sakamoto +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman + +--- + sound/firewire/bebob/bebob_maudio.c | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +--- a/sound/firewire/bebob/bebob_maudio.c ++++ b/sound/firewire/bebob/bebob_maudio.c +@@ -96,10 +96,10 @@ int snd_bebob_maudio_load_firmware(struc + struct fw_device *device = fw_parent_device(unit); + int err, rcode; + u64 date; +- __be32 cues[3] = { +- MAUDIO_BOOTLOADER_CUE1, +- MAUDIO_BOOTLOADER_CUE2, +- MAUDIO_BOOTLOADER_CUE3 ++ __le32 cues[3] = { ++ cpu_to_le32(MAUDIO_BOOTLOADER_CUE1), ++ cpu_to_le32(MAUDIO_BOOTLOADER_CUE2), ++ cpu_to_le32(MAUDIO_BOOTLOADER_CUE3) + }; + + /* check date of software used to build */ diff --git a/queue-3.19/alsa-hda-add-dock-support-for-thinkpad-t450s-17aa-5036.patch b/queue-3.19/alsa-hda-add-dock-support-for-thinkpad-t450s-17aa-5036.patch new file mode 100644 index 00000000000..701a2032730 --- /dev/null +++ b/queue-3.19/alsa-hda-add-dock-support-for-thinkpad-t450s-17aa-5036.patch @@ -0,0 +1,29 @@ +From 80b311d3118842eb681397233faa0d588df13f92 Mon Sep 17 00:00:00 2001 +From: Sebastian Wicki +Date: Mon, 23 Mar 2015 17:23:11 +0100 +Subject: ALSA: hda - Add dock support for Thinkpad T450s (17aa:5036) + +From: Sebastian Wicki + +commit 80b311d3118842eb681397233faa0d588df13f92 upstream. + +This model uses the same dock port as the previous generation. + +Signed-off-by: Sebastian Wicki +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman + +--- + sound/pci/hda/patch_realtek.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -4941,6 +4941,7 @@ static const struct snd_pci_quirk alc269 + SND_PCI_QUIRK(0x17aa, 0x501a, "Thinkpad", ALC283_FIXUP_INT_MIC), + SND_PCI_QUIRK(0x17aa, 0x501e, "Thinkpad L440", ALC292_FIXUP_TPT440_DOCK), + SND_PCI_QUIRK(0x17aa, 0x5026, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), ++ SND_PCI_QUIRK(0x17aa, 0x5036, "Thinkpad T450s", ALC292_FIXUP_TPT440_DOCK), + SND_PCI_QUIRK(0x17aa, 0x5109, "Thinkpad", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), + SND_PCI_QUIRK(0x17aa, 0x3bf8, "Quanta FL1", ALC269_FIXUP_PCM_44K), + SND_PCI_QUIRK(0x17aa, 0x9e54, "LENOVO NB", ALC269_FIXUP_LENOVO_EAPD), diff --git a/queue-3.19/alsa-hda-add-one-more-node-in-the-eapd-supporting-candidate-list.patch b/queue-3.19/alsa-hda-add-one-more-node-in-the-eapd-supporting-candidate-list.patch new file mode 100644 index 00000000000..14676631302 --- /dev/null +++ b/queue-3.19/alsa-hda-add-one-more-node-in-the-eapd-supporting-candidate-list.patch @@ -0,0 +1,34 @@ +From af95b41426e0b58279f8ff0ebe420df49a4e96b8 Mon Sep 17 00:00:00 2001 +From: Hui Wang +Date: Thu, 26 Mar 2015 17:14:55 +0800 +Subject: ALSA: hda - Add one more node in the EAPD supporting candidate list + +From: Hui Wang + +commit af95b41426e0b58279f8ff0ebe420df49a4e96b8 upstream. + +We have a HP machine which use the codec node 0x17 connecting the +internal speaker, and from the node capability, we saw the EAPD, +if we don't set the EAPD on for this node, the internal speaker +can't output any sound. + +BugLink: https://bugs.launchpad.net/bugs/1436745 +Signed-off-by: Hui Wang +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman + +--- + sound/pci/hda/patch_realtek.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -394,7 +394,7 @@ static void alc_auto_setup_eapd(struct h + { + /* We currently only handle front, HP */ + static hda_nid_t pins[] = { +- 0x0f, 0x10, 0x14, 0x15, 0 ++ 0x0f, 0x10, 0x14, 0x15, 0x17, 0 + }; + hda_nid_t *p; + for (p = pins; *p; p++) diff --git a/queue-3.19/alsa-hda-fix-headphone-pin-config-for-lifebook-t731.patch b/queue-3.19/alsa-hda-fix-headphone-pin-config-for-lifebook-t731.patch new file mode 100644 index 00000000000..7373567b50b --- /dev/null +++ b/queue-3.19/alsa-hda-fix-headphone-pin-config-for-lifebook-t731.patch @@ -0,0 +1,61 @@ +From cc7016ab1a22fb26f388c2fb2b692b89897cbc3e Mon Sep 17 00:00:00 2001 +From: Takashi Iwai +Date: Wed, 8 Apr 2015 20:47:55 +0200 +Subject: ALSA: hda - Fix headphone pin config for Lifebook T731 + +From: Takashi Iwai + +commit cc7016ab1a22fb26f388c2fb2b692b89897cbc3e upstream. + +Some BIOS version of Fujitsu Lifebook T731 seems to set up the +headphone pin (0x21) without the assoc number 0x0f while it's set only +to the output on the docking port (0x1a). With the recent commit +[03ad6a8c93b6: ALSA: hda - Fix "PCM" name being used on one DAC when + there are two DACs], this resulted in the weird mixer element +mapping where the headphone on the laptop is assigned as a shared +volume with the speaker and the docking port is assigned as an +individual headphone. + +This patch improves the situation by correcting the headphone pin +config to the more appropriate value. + +Reported-and-tested-by: Taylor Smock +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman + +--- + sound/pci/hda/patch_realtek.c | 9 +++++++++ + 1 file changed, 9 insertions(+) + +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -4291,6 +4291,7 @@ enum { + ALC269_FIXUP_QUANTA_MUTE, + ALC269_FIXUP_LIFEBOOK, + ALC269_FIXUP_LIFEBOOK_EXTMIC, ++ ALC269_FIXUP_LIFEBOOK_HP_PIN, + ALC269_FIXUP_AMIC, + ALC269_FIXUP_DMIC, + ALC269VB_FIXUP_AMIC, +@@ -4442,6 +4443,13 @@ static const struct hda_fixup alc269_fix + { } + }, + }, ++ [ALC269_FIXUP_LIFEBOOK_HP_PIN] = { ++ .type = HDA_FIXUP_PINS, ++ .v.pins = (const struct hda_pintbl[]) { ++ { 0x21, 0x0221102f }, /* HP out */ ++ { } ++ }, ++ }, + [ALC269_FIXUP_AMIC] = { + .type = HDA_FIXUP_PINS, + .v.pins = (const struct hda_pintbl[]) { +@@ -4917,6 +4925,7 @@ static const struct snd_pci_quirk alc269 + SND_PCI_QUIRK(0x104d, 0x9084, "Sony VAIO", ALC275_FIXUP_SONY_HWEQ), + SND_PCI_QUIRK(0x104d, 0x9099, "Sony VAIO S13", ALC275_FIXUP_SONY_DISABLE_AAMIX), + SND_PCI_QUIRK(0x10cf, 0x1475, "Lifebook", ALC269_FIXUP_LIFEBOOK), ++ SND_PCI_QUIRK(0x10cf, 0x15dc, "Lifebook T731", ALC269_FIXUP_LIFEBOOK_HP_PIN), + SND_PCI_QUIRK(0x10cf, 0x1845, "Lifebook U904", ALC269_FIXUP_LIFEBOOK_EXTMIC), + SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", ALC269_FIXUP_INV_DMIC), + SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_BXBT2807_MIC), diff --git a/queue-3.19/alsa-hda-realtek-make-more-stable-to-get-pin-sense-for-alc283.patch b/queue-3.19/alsa-hda-realtek-make-more-stable-to-get-pin-sense-for-alc283.patch new file mode 100644 index 00000000000..3d23b31870b --- /dev/null +++ b/queue-3.19/alsa-hda-realtek-make-more-stable-to-get-pin-sense-for-alc283.patch @@ -0,0 +1,32 @@ +From a59d7199f62b8336570972dcc288321d0ec999fe Mon Sep 17 00:00:00 2001 +From: Kailang Yang +Date: Wed, 8 Apr 2015 16:34:00 +0800 +Subject: ALSA: hda/realtek - Make more stable to get pin sense for ALC283 + +From: Kailang Yang + +commit a59d7199f62b8336570972dcc288321d0ec999fe upstream. + +Pin sense will active when power pin is wake up. +Power pin will not wake up immediately during resume state. +Add some delay to wait for power pin activated. + +Signed-off-by: Kailang Yang +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman + +--- + sound/pci/hda/patch_realtek.c | 2 ++ + 1 file changed, 2 insertions(+) + +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -2910,6 +2910,8 @@ static void alc283_init(struct hda_codec + + if (!hp_pin) + return; ++ ++ msleep(30); + hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); + + /* Index 0x43 Direct Drive HP AMP LPM Control 1 */ diff --git a/queue-3.19/alsa-usb-creative-usb-x-fi-pro-sb1095-volume-knob-support.patch b/queue-3.19/alsa-usb-creative-usb-x-fi-pro-sb1095-volume-knob-support.patch new file mode 100644 index 00000000000..96ca094cf03 --- /dev/null +++ b/queue-3.19/alsa-usb-creative-usb-x-fi-pro-sb1095-volume-knob-support.patch @@ -0,0 +1,32 @@ +From 3dc8523fa7412e731441c01fb33f003eb3cfece1 Mon Sep 17 00:00:00 2001 +From: "Dmitry M. Fedin" +Date: Thu, 9 Apr 2015 17:37:03 +0300 +Subject: ALSA: usb - Creative USB X-Fi Pro SB1095 volume knob support + +From: "Dmitry M. Fedin" + +commit 3dc8523fa7412e731441c01fb33f003eb3cfece1 upstream. + +Adds an entry for Creative USB X-Fi to the rc_config array in +mixer_quirks.c to allow use of volume knob on the device. +Adds support for newer X-Fi Pro card, known as "Model No. SB1095" +with USB ID "041e:3237" + +Signed-off-by: Dmitry M. Fedin +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman + +--- + sound/usb/mixer_quirks.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/sound/usb/mixer_quirks.c ++++ b/sound/usb/mixer_quirks.c +@@ -192,6 +192,7 @@ static const struct rc_config { + { USB_ID(0x041e, 0x3040), 2, 2, 6, 6, 2, 0x6e91 }, /* Live! 24-bit */ + { USB_ID(0x041e, 0x3042), 0, 1, 1, 1, 1, 0x000d }, /* Usb X-Fi S51 */ + { USB_ID(0x041e, 0x30df), 0, 1, 1, 1, 1, 0x000d }, /* Usb X-Fi S51 Pro */ ++ { USB_ID(0x041e, 0x3237), 0, 1, 1, 1, 1, 0x000d }, /* Usb X-Fi S51 Pro */ + { USB_ID(0x041e, 0x3048), 2, 2, 6, 6, 2, 0x6e91 }, /* Toshiba SB0500 */ + }; +