]> www.infradead.org Git - users/dwmw2/linux.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)
committerTakashi Iwai <tiwai@suse.de>
Fri, 26 Jul 2024 14:36:10 +0000 (16:36 +0200)
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>
sound/pci/hda/patch_conexant.c

index 4472923ba694bec2898ed4bfcb9436e979d94799..f030669243f9a501e3a65a2d991f770fa1b8f4d4 100644 (file)
@@ -205,6 +205,8 @@ static void cx_auto_shutdown(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);