]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.5-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Oct 2023 08:13:35 +0000 (10:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Oct 2023 08:13:35 +0000 (10:13 +0200)
added patches:
alsa-hda-realtek-fixed-two-speaker-platform.patch

queue-6.5/alsa-hda-realtek-fixed-two-speaker-platform.patch [new file with mode: 0644]
queue-6.5/series

diff --git a/queue-6.5/alsa-hda-realtek-fixed-two-speaker-platform.patch b/queue-6.5/alsa-hda-realtek-fixed-two-speaker-platform.patch
new file mode 100644 (file)
index 0000000..4af236f
--- /dev/null
@@ -0,0 +1,36 @@
+From fb6254df09bba303db2a1002085f6c0b90a456ed Mon Sep 17 00:00:00 2001
+From: Kailang Yang <kailang@realtek.com>
+Date: Tue, 12 Sep 2023 15:31:49 +0800
+Subject: ALSA: hda/realtek - Fixed two speaker platform
+
+From: Kailang Yang <kailang@realtek.com>
+
+commit fb6254df09bba303db2a1002085f6c0b90a456ed upstream.
+
+If system has two speakers and one connect to 0x14 pin, use this
+function will disable it.
+
+Fixes: e43252db7e20 ("ALSA: hda/realtek - ALC287 I2S speaker platform support")
+Signed-off-by: Kailang Yang <kailang@realtek.com>
+Link: https://lore.kernel.org/r/e3f2aac3fe6a47079d728a6443358cc2@realtek.com
+Signed-off-by: Takashi Iwai <tiwai@suse.de>
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ sound/pci/hda/patch_realtek.c |    6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+--- a/sound/pci/hda/patch_realtek.c
++++ b/sound/pci/hda/patch_realtek.c
+@@ -7004,8 +7004,10 @@ static void alc287_fixup_bind_dacs(struc
+       snd_hda_override_conn_list(codec, 0x17, ARRAY_SIZE(conn), conn);
+       spec->gen.preferred_dacs = preferred_pairs;
+       spec->gen.auto_mute_via_amp = 1;
+-      snd_hda_codec_write_cache(codec, 0x14, 0, AC_VERB_SET_PIN_WIDGET_CONTROL,
+-                          0x0); /* Make sure 0x14 was disable */
++      if (spec->gen.autocfg.speaker_pins[0] != 0x14) {
++              snd_hda_codec_write_cache(codec, 0x14, 0, AC_VERB_SET_PIN_WIDGET_CONTROL,
++                                      0x0); /* Make sure 0x14 was disable */
++      }
+ }
index 6464e74dcc04be9028c0c3ceabdf4417649d1c59..4eecf8eaaa673b0c4f327a9e5dff54a51577fdc5 100644 (file)
@@ -188,3 +188,4 @@ fs-factor-out-vfs_parse_monolithic_sep-helper.patch
 ovl-fix-regression-in-parsing-of-mount-options-with-.patch
 ovl-make-use-of-layers-safe-in-rcu-pathwalk.patch
 ovl-fix-regression-in-showing-lowerdir-mount-option.patch
+alsa-hda-realtek-fixed-two-speaker-platform.patch