]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ALSA: hda/conexant: Mute speakers at suspend / shutdown
authorTakashi Iwai <tiwai@suse.de>
Fri, 26 Jul 2024 14:26:20 +0000 (16:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Sep 2024 09:06:38 +0000 (11:06 +0200)
[ Upstream commit 4f61c8fe35202702426cfc0003e15116a01ba885 ]

Use the new helper to mute speakers at suspend / shutdown for avoiding
click noises.

Link: https://bugzilla.suse.com/show_bug.cgi?id=1228269
Link: https://patch.msgid.link/20240726142625.2460-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/patch_conexant.c

index 5b37f5f14bc91e00007345963180584cf0ba464c..2d10c6e744ab2d7743d37c2fa479e6f98734c1e4 100644 (file)
@@ -181,6 +181,8 @@ static void cx_auto_reboot_notify(struct hda_codec *codec)
 {
        struct conexant_spec *spec = codec->spec;
 
+       snd_hda_gen_shutup_speakers(codec);
+
        /* Turn the problematic codec into D3 to avoid spurious noises
           from the internal speaker during (and after) reboot */
        cx_auto_turn_eapd(codec, spec->num_eapds, spec->eapds, false);