]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.16-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Sep 2025 13:18:06 +0000 (15:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Sep 2025 13:18:06 +0000 (15:18 +0200)
added patches:
alsa-hda-hdmi-add-pin-fix-for-another-hp-elitedesk-800-g4-model.patch
alsa-hda-realtek-fix-headset-mic-for-tongfang-x6r5xxy.patch
alsa-hda-tas2781-fix-tas2563-efi-data-endianness.patch
alsa-hda-tas2781-reorder-tas2563-calibration-variables.patch

queue-6.16/alsa-hda-hdmi-add-pin-fix-for-another-hp-elitedesk-800-g4-model.patch [new file with mode: 0644]
queue-6.16/alsa-hda-realtek-fix-headset-mic-for-tongfang-x6r5xxy.patch [new file with mode: 0644]
queue-6.16/alsa-hda-tas2781-fix-tas2563-efi-data-endianness.patch [new file with mode: 0644]
queue-6.16/alsa-hda-tas2781-reorder-tas2563-calibration-variables.patch [new file with mode: 0644]
queue-6.16/series

diff --git a/queue-6.16/alsa-hda-hdmi-add-pin-fix-for-another-hp-elitedesk-800-g4-model.patch b/queue-6.16/alsa-hda-hdmi-add-pin-fix-for-another-hp-elitedesk-800-g4-model.patch
new file mode 100644 (file)
index 0000000..603add0
--- /dev/null
@@ -0,0 +1,31 @@
+From bcd6659d4911c528381531472a0cefbd4003e29e Mon Sep 17 00:00:00 2001
+From: Takashi Iwai <tiwai@suse.de>
+Date: Mon, 1 Sep 2025 13:50:08 +0200
+Subject: ALSA: hda/hdmi: Add pin fix for another HP EliteDesk 800 G4 model
+
+From: Takashi Iwai <tiwai@suse.de>
+
+commit bcd6659d4911c528381531472a0cefbd4003e29e upstream.
+
+It was reported that HP EliteDesk 800 G4 DM 65W (SSID 103c:845a) needs
+the similar quirk for enabling HDMI outputs, too.  This patch adds the
+corresponding quirk entry.
+
+Cc: <stable@vger.kernel.org>
+Link: https://patch.msgid.link/20250901115009.27498-1-tiwai@suse.de
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ sound/pci/hda/patch_hdmi.c |    1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/sound/pci/hda/patch_hdmi.c
++++ b/sound/pci/hda/patch_hdmi.c
+@@ -1991,6 +1991,7 @@ static int hdmi_add_cvt(struct hda_codec
+ static const struct snd_pci_quirk force_connect_list[] = {
+       SND_PCI_QUIRK(0x103c, 0x83e2, "HP EliteDesk 800 G4", 1),
+       SND_PCI_QUIRK(0x103c, 0x83ef, "HP MP9 G4 Retail System AMS", 1),
++      SND_PCI_QUIRK(0x103c, 0x845a, "HP EliteDesk 800 G4 DM 65W", 1),
+       SND_PCI_QUIRK(0x103c, 0x870f, "HP", 1),
+       SND_PCI_QUIRK(0x103c, 0x871a, "HP", 1),
+       SND_PCI_QUIRK(0x103c, 0x8711, "HP", 1),
diff --git a/queue-6.16/alsa-hda-realtek-fix-headset-mic-for-tongfang-x6r5xxy.patch b/queue-6.16/alsa-hda-realtek-fix-headset-mic-for-tongfang-x6r5xxy.patch
new file mode 100644 (file)
index 0000000..8b82bf6
--- /dev/null
@@ -0,0 +1,32 @@
+From 051b02b17a8b383ee033db211f90f24b91ac7006 Mon Sep 17 00:00:00 2001
+From: Aaron Erhardt <aer@tuxedocomputers.com>
+Date: Tue, 26 Aug 2025 16:10:54 +0200
+Subject: ALSA: hda/realtek: Fix headset mic for TongFang X6[AF]R5xxY
+
+From: Aaron Erhardt <aer@tuxedocomputers.com>
+
+commit 051b02b17a8b383ee033db211f90f24b91ac7006 upstream.
+
+Add a PCI quirk to enable microphone detection on the headphone jack of
+TongFang X6AR5xxY and X6FR5xxY devices.
+
+Signed-off-by: Aaron Erhardt <aer@tuxedocomputers.com>
+Cc: <stable@vger.kernel.org>
+Link: https://patch.msgid.link/20250826141054.1201482-1-aer@tuxedocomputers.com
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ 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
+@@ -11427,6 +11427,8 @@ static const struct hda_quirk alc269_fix
+       SND_PCI_QUIRK(0x1d05, 0x121b, "TongFang GMxAGxx", ALC269_FIXUP_NO_SHUTUP),
+       SND_PCI_QUIRK(0x1d05, 0x1387, "TongFang GMxIXxx", ALC2XX_FIXUP_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1d05, 0x1409, "TongFang GMxIXxx", ALC2XX_FIXUP_HEADSET_MIC),
++      SND_PCI_QUIRK(0x1d05, 0x300f, "TongFang X6AR5xxY", ALC2XX_FIXUP_HEADSET_MIC),
++      SND_PCI_QUIRK(0x1d05, 0x3019, "TongFang X6FR5xxY", ALC2XX_FIXUP_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1d17, 0x3288, "Haier Boyue G42", ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS),
+       SND_PCI_QUIRK(0x1d72, 0x1602, "RedmiBook", ALC255_FIXUP_XIAOMI_HEADSET_MIC),
+       SND_PCI_QUIRK(0x1d72, 0x1701, "XiaomiNotebook Pro", ALC298_FIXUP_DELL1_MIC_NO_PRESENCE),
diff --git a/queue-6.16/alsa-hda-tas2781-fix-tas2563-efi-data-endianness.patch b/queue-6.16/alsa-hda-tas2781-fix-tas2563-efi-data-endianness.patch
new file mode 100644 (file)
index 0000000..a32e0c2
--- /dev/null
@@ -0,0 +1,46 @@
+From e5a00dafc7e06ab1b20fd4c1535cfa9b9940061e Mon Sep 17 00:00:00 2001
+From: Gergo Koteles <soyer@irl.hu>
+Date: Fri, 29 Aug 2025 18:04:49 +0200
+Subject: ALSA: hda: tas2781: fix tas2563 EFI data endianness
+
+From: Gergo Koteles <soyer@irl.hu>
+
+commit e5a00dafc7e06ab1b20fd4c1535cfa9b9940061e upstream.
+
+Before conversion to unify the calibration data management, the
+tas2563_apply_calib() function performed the big endian conversion and
+wrote the calibration data to the device. The writing is now done by the
+common tasdev_load_calibrated_data() function, but without conversion.
+
+Put the values into the calibration data buffer with the expected
+endianness.
+
+Fixes: 4fe238513407 ("ALSA: hda/tas2781: Move and unified the calibrated-data getting function for SPI and I2C into the tas2781_hda lib")
+Cc: <stable@vger.kernel.org>
+Signed-off-by: Gergo Koteles <soyer@irl.hu>
+Link: https://patch.msgid.link/20250829160450.66623-1-soyer@irl.hu
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ sound/pci/hda/tas2781_hda_i2c.c |    3 +++
+ 1 file changed, 3 insertions(+)
+
+--- a/sound/pci/hda/tas2781_hda_i2c.c
++++ b/sound/pci/hda/tas2781_hda_i2c.c
+@@ -292,6 +292,7 @@ static int tas2563_save_calibration(stru
+       struct cali_reg *r = &cd->cali_reg_array;
+       unsigned int offset = 0;
+       unsigned char *data;
++      __be32 bedata;
+       efi_status_t status;
+       unsigned int attr;
+       int ret, i, j, k;
+@@ -333,6 +334,8 @@ static int tas2563_save_calibration(stru
+                                       i, j, status);
+                               return -EINVAL;
+                       }
++                      bedata = cpu_to_be32(*(uint32_t *)&data[offset]);
++                      memcpy(&data[offset], &bedata, sizeof(bedata));
+                       offset += TAS2563_CAL_DATA_SIZE;
+               }
+       }
diff --git a/queue-6.16/alsa-hda-tas2781-reorder-tas2563-calibration-variables.patch b/queue-6.16/alsa-hda-tas2781-reorder-tas2563-calibration-variables.patch
new file mode 100644 (file)
index 0000000..f7b78ca
--- /dev/null
@@ -0,0 +1,37 @@
+From d5f8458e34a331e5b228de142145e62ac5bfda34 Mon Sep 17 00:00:00 2001
+From: Gergo Koteles <soyer@irl.hu>
+Date: Fri, 29 Aug 2025 18:04:50 +0200
+Subject: ALSA: hda: tas2781: reorder tas2563 calibration variables
+
+From: Gergo Koteles <soyer@irl.hu>
+
+commit d5f8458e34a331e5b228de142145e62ac5bfda34 upstream.
+
+The tasdev_load_calibrated_data() function expects the calibration data
+values in the cali_data buffer as R0, R0Low, InvR0, Power, TLim which
+is not the same as what tas2563_save_calibration() writes to the buffer.
+
+Reorder the EFI variables in the tas2563_save_calibration() function
+to put the values in the buffer in the correct order.
+
+Fixes: 4fe238513407 ("ALSA: hda/tas2781: Move and unified the calibrated-data getting function for SPI and I2C into the tas2781_hda lib")
+Cc: <stable@vger.kernel.org>
+Signed-off-by: Gergo Koteles <soyer@irl.hu>
+Link: https://patch.msgid.link/20250829160450.66623-2-soyer@irl.hu
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ sound/pci/hda/tas2781_hda_i2c.c |    2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/sound/pci/hda/tas2781_hda_i2c.c
++++ b/sound/pci/hda/tas2781_hda_i2c.c
+@@ -282,7 +282,7 @@ static int tas2563_save_calibration(stru
+ {
+       efi_guid_t efi_guid = tasdev_fct_efi_guid[LENOVO];
+       char *vars[TASDEV_CALIB_N] = {
+-              "R0_%d", "InvR0_%d", "R0_Low_%d", "Power_%d", "TLim_%d"
++              "R0_%d", "R0_Low_%d", "InvR0_%d", "Power_%d", "TLim_%d"
+       };
+       efi_char16_t efi_name[TAS2563_CAL_VAR_NAME_MAX];
+       unsigned long max_size = TAS2563_CAL_DATA_SIZE;
index 8cf9eaf8fa2bcb7c42b64d29c488c68cf7f05e1f..743d5e4c01323c24d8e8eaa76fd9eb1150626e56 100644 (file)
@@ -141,3 +141,7 @@ microchip-lan865x-fix-module-autoloading.patch
 microchip-lan865x-fix-lan8651-autoloading.patch
 drm-dp-change-aux-dpcd-probe-address-from-lane0_1_status-to-training_pattern_set.patch
 rust-support-rust-1.91.0-target-spec.patch
+alsa-hda-hdmi-add-pin-fix-for-another-hp-elitedesk-800-g4-model.patch
+alsa-hda-realtek-fix-headset-mic-for-tongfang-x6r5xxy.patch
+alsa-hda-tas2781-fix-tas2563-efi-data-endianness.patch
+alsa-hda-tas2781-reorder-tas2563-calibration-variables.patch