mbox series

[0/3] ALSA: hda: Forcibly suspend codec at shutdown

Message ID 20210813081230.4268-1-tiwai@suse.de
Headers show
Series ALSA: hda: Forcibly suspend codec at shutdown | expand

Message

Takashi Iwai Aug. 13, 2021, 8:12 a.m. UTC
Hi,

this is a patch set for fixing the issue at shutdown/reboot with
HD-audio.  The recent regression report brought me to check the
shutdown code execution and it turned out that we don't do right for
the codec shutdown while powering off the controller side.
As a simple but big-hammer solution, this changes the codec driver's
shutdown callback to forcibly (runtime-)suspend.  It assures the
proper power-off and the mute, as done at the usual suspend/resume.

Currently my plan is to apply this for 5.15, as the impact is
significant and it's a bit too late for 5.14 shortly before the
final.


Takashi

===

Takashi Iwai (3):
  ALSA: hda: conexant: Turn off EAPD at suspend, too
  ALSA: hda: Suspend codec at shutdown
  ALSA: hda: Nuke unused reboot_notify callback

 include/sound/hda_codec.h      |  1 -
 sound/pci/hda/hda_bind.c       |  8 +-------
 sound/pci/hda/hda_codec.c      | 14 ++++++++++++++
 sound/pci/hda/hda_generic.c    | 19 -------------------
 sound/pci/hda/hda_generic.h    |  1 -
 sound/pci/hda/hda_local.h      |  2 ++
 sound/pci/hda/patch_analog.c   |  1 -
 sound/pci/hda/patch_ca0132.c   |  6 ------
 sound/pci/hda/patch_conexant.c | 15 +++++++++++----
 sound/pci/hda/patch_realtek.c  | 13 -------------
 sound/pci/hda/patch_sigmatel.c |  1 -
 11 files changed, 28 insertions(+), 53 deletions(-)