This is a note to let you know that I've just added the patch titled ALSA: hda/realtek - Fix inverted bass GPIO pin on Acer 8951G to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: alsa-hda-realtek-fix-inverted-bass-gpio-pin-on-acer-8951g.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 336820c4374bc065317f247dc2bb37c0e41b64a6 Mon Sep 17 00:00:00 2001 From: Takashi Iwai <tiwai@xxxxxxx> Date: Thu, 28 Nov 2019 21:26:30 +0100 Subject: ALSA: hda/realtek - Fix inverted bass GPIO pin on Acer 8951G From: Takashi Iwai <tiwai@xxxxxxx> commit 336820c4374bc065317f247dc2bb37c0e41b64a6 upstream. We've added the bass speaker support on Acer 8951G by the commit 00066e9733f6 ("Add Acer Aspire Ethos 8951G model quirk"), but it seems that the GPIO pin was wrongly set: while the commit turns off the bit to power up the amp, the actual hardware reacts other way round, i.e. GPIO bit on = amp on. So this patch fixes the bug, turning on the GPIO bit 0x02 as default. Since turning on the GPIO bit can be more easily managed with alc_setup_gpio() call, we simplify the quirk code by integrating the GPIO setup into the existing alc662_fixup_aspire_ethos_hp() and dropping the whole ALC669_FIXUP_ACER_ASPIRE_ETHOS_SUBWOOFER quirk. Fixes: 00066e9733f6 ("Add Acer Aspire Ethos 8951G model quirk") Reported-and-tested-by: Sergey 'Jin' Bostandzhyan <jin@xxxxxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> Link: https://lore.kernel.org/r/20191128202630.6626-1-tiwai@xxxxxxx Signed-off-by: Takashi Iwai <tiwai@xxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- sound/pci/hda/patch_realtek.c | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c @@ -8540,6 +8540,8 @@ static void alc662_fixup_aspire_ethos_hp case HDA_FIXUP_ACT_PRE_PROBE: snd_hda_jack_detect_enable_callback(codec, 0x1b, alc662_aspire_ethos_mute_speakers); + /* subwoofer needs an extra GPIO setting to become audible */ + alc_setup_gpio(codec, 0x02); break; case HDA_FIXUP_ACT_INIT: /* Make sure to start in a correct state, i.e. if @@ -8666,7 +8668,6 @@ enum { ALC662_FIXUP_USI_HEADSET_MODE, ALC662_FIXUP_LENOVO_MULTI_CODECS, ALC669_FIXUP_ACER_ASPIRE_ETHOS, - ALC669_FIXUP_ACER_ASPIRE_ETHOS_SUBWOOFER, ALC669_FIXUP_ACER_ASPIRE_ETHOS_HEADSET, ALC671_FIXUP_HP_HEADSET_MIC2, ALC662_FIXUP_ACER_X2660G_HEADSET_MODE, @@ -9007,18 +9008,6 @@ static const struct hda_fixup alc662_fix .type = HDA_FIXUP_FUNC, .v.func = alc662_fixup_aspire_ethos_hp, }, - [ALC669_FIXUP_ACER_ASPIRE_ETHOS_SUBWOOFER] = { - .type = HDA_FIXUP_VERBS, - /* subwoofer needs an extra GPIO setting to become audible */ - .v.verbs = (const struct hda_verb[]) { - {0x01, AC_VERB_SET_GPIO_MASK, 0x02}, - {0x01, AC_VERB_SET_GPIO_DIRECTION, 0x02}, - {0x01, AC_VERB_SET_GPIO_DATA, 0x00}, - { } - }, - .chained = true, - .chain_id = ALC669_FIXUP_ACER_ASPIRE_ETHOS_HEADSET - }, [ALC669_FIXUP_ACER_ASPIRE_ETHOS] = { .type = HDA_FIXUP_PINS, .v.pins = (const struct hda_pintbl[]) { @@ -9028,7 +9017,7 @@ static const struct hda_fixup alc662_fix { } }, .chained = true, - .chain_id = ALC669_FIXUP_ACER_ASPIRE_ETHOS_SUBWOOFER + .chain_id = ALC669_FIXUP_ACER_ASPIRE_ETHOS_HEADSET }, [ALC671_FIXUP_HP_HEADSET_MIC2] = { .type = HDA_FIXUP_FUNC, Patches currently in stable-queue which might be from tiwai@xxxxxxx are queue-4.19/alsa-hda-realtek-add-a-quirk-for-hp-elitedesk-805.patch queue-4.19/alsa-hda-realtek-fix-the-mic-type-detection-issue-fo.patch queue-4.19/alsa-hda-fix-oops-by-9.1-surround-channel-names.patch queue-4.19/alsa-hda-realtek-alc897-headset-mic-no-sound.patch queue-4.19/alsa-hda-realtek-fix-inverted-bass-gpio-pin-on-acer-8951g.patch queue-4.19/alsa-hda-realtek-add-headset-mic-supported-for-hp-cp.patch queue-4.19/alsa-hda-realtek-fixed-one-of-hp-alc671-platform-headset-mic-supported.patch queue-4.19/alsa-hda-realtek-more-constifications.patch queue-4.19/alsa-hda-ca0132-add-quirk-for-evga-x299-dark.patch queue-4.19/add-acer-aspire-ethos-8951g-model-quirk.patch queue-4.19/alsa-hda-realtek-add-headset-mic-support-for-lenovo-.patch queue-4.19/alsa-hda-realtek-the-front-mic-on-a-hp-machine-doesn.patch queue-4.19/alsa-hda-add-nvidia-codec-ids-a3-through-a7-to-patch-table.patch queue-4.19/alsa-hda-realtek-enable-the-headset-of-acer-n50-600-.patch queue-4.19/alsa-hda-realtek-enable-headset-mic-of-acer-x2660g-w.patch