From b8530cf4767713afd5e3b733bd2656f42c849204 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sun, 8 Sep 2024 12:21:01 +0200 Subject: [PATCH] 4.19-stable patches added patches: alsa-hda-conexant-add-pincfg-quirk-to-enable-top-speakers-on-sirius-devices.patch --- ...nable-top-speakers-on-sirius-devices.patch | 66 +++++++++++++++++++ queue-4.19/series | 1 + 2 files changed, 67 insertions(+) create mode 100644 queue-4.19/alsa-hda-conexant-add-pincfg-quirk-to-enable-top-speakers-on-sirius-devices.patch diff --git a/queue-4.19/alsa-hda-conexant-add-pincfg-quirk-to-enable-top-speakers-on-sirius-devices.patch b/queue-4.19/alsa-hda-conexant-add-pincfg-quirk-to-enable-top-speakers-on-sirius-devices.patch new file mode 100644 index 00000000000..da2b2317f11 --- /dev/null +++ b/queue-4.19/alsa-hda-conexant-add-pincfg-quirk-to-enable-top-speakers-on-sirius-devices.patch @@ -0,0 +1,66 @@ +From 4178d78cd7a86510ba68d203f26fc01113c7f126 Mon Sep 17 00:00:00 2001 +From: Christoffer Sandberg +Date: Tue, 27 Aug 2024 12:25:40 +0200 +Subject: ALSA: hda/conexant: Add pincfg quirk to enable top speakers on Sirius devices + +From: Christoffer Sandberg + +commit 4178d78cd7a86510ba68d203f26fc01113c7f126 upstream. + +The Sirius notebooks have two sets of speakers 0x17 (sides) and +0x1d (top center). The side speakers are active by default but +the top speakers aren't. + +This patch provides a pincfg quirk to activate the top speakers. + +Signed-off-by: Christoffer Sandberg +Signed-off-by: Werner Sembach +Cc: stable@vger.kernel.org +Link: https://patch.msgid.link/20240827102540.9480-1-wse@tuxedocomputers.com +Signed-off-by: Takashi Iwai +Signed-off-by: Greg Kroah-Hartman +--- + sound/pci/hda/patch_conexant.c | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +--- a/sound/pci/hda/patch_conexant.c ++++ b/sound/pci/hda/patch_conexant.c +@@ -230,6 +230,7 @@ enum { + CXT_FIXUP_HEADSET_MIC, + CXT_FIXUP_HP_MIC_NO_PRESENCE, + CXT_PINCFG_SWS_JS201D, ++ CXT_PINCFG_TOP_SPEAKER, + }; + + /* for hda_fixup_thinkpad_acpi() */ +@@ -884,6 +885,13 @@ static const struct hda_fixup cxt_fixups + .type = HDA_FIXUP_PINS, + .v.pins = cxt_pincfg_sws_js201d, + }, ++ [CXT_PINCFG_TOP_SPEAKER] = { ++ .type = HDA_FIXUP_PINS, ++ .v.pins = (const struct hda_pintbl[]) { ++ { 0x1d, 0x82170111 }, ++ { } ++ }, ++ }, + }; + + static const struct snd_pci_quirk cxt5045_fixups[] = { +@@ -978,6 +986,8 @@ static const struct snd_pci_quirk cxt506 + SND_PCI_QUIRK_VENDOR(0x17aa, "Thinkpad", CXT_FIXUP_THINKPAD_ACPI), + SND_PCI_QUIRK(0x1c06, 0x2011, "Lemote A1004", CXT_PINCFG_LEMOTE_A1004), + SND_PCI_QUIRK(0x1c06, 0x2012, "Lemote A1205", CXT_PINCFG_LEMOTE_A1205), ++ SND_PCI_QUIRK(0x2782, 0x12c3, "Sirius Gen1", CXT_PINCFG_TOP_SPEAKER), ++ SND_PCI_QUIRK(0x2782, 0x12c5, "Sirius Gen2", CXT_PINCFG_TOP_SPEAKER), + {} + }; + +@@ -996,6 +1006,7 @@ static const struct hda_model_fixup cxt5 + { .id = CXT_FIXUP_HP_MIC_NO_PRESENCE, .name = "hp-mic-fix" }, + { .id = CXT_PINCFG_LENOVO_NOTEBOOK, .name = "lenovo-20149" }, + { .id = CXT_PINCFG_SWS_JS201D, .name = "sws-js201d" }, ++ { .id = CXT_PINCFG_TOP_SPEAKER, .name = "sirius-top-speaker" }, + {} + }; + diff --git a/queue-4.19/series b/queue-4.19/series index d8982a52895..3c97b40d9f3 100644 --- a/queue-4.19/series +++ b/queue-4.19/series @@ -16,3 +16,4 @@ udf-limit-file-size-to-4tb.patch alsa-usb-audio-sanity-checks-for-each-pipe-and-ep-types.patch alsa-usb-audio-fix-gpf-in-snd_usb_pipe_sanity_check.patch sch-netem-fix-use-after-free-in-netem_dequeue.patch +alsa-hda-conexant-add-pincfg-quirk-to-enable-top-speakers-on-sirius-devices.patch -- 2.47.3