ALSA: hda - Add a generic reboot_notify
authorHui Wang <hui.wang@canonical.com>
Wed, 14 Aug 2019 04:09:08 +0000 (12:09 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 14 Aug 2019 06:38:23 +0000 (08:38 +0200)
commit871b9066027702e6e6589da0e1edd3b7dede7205
tree8234775a736ee5e4f918bc5dc5e6d9a57d93a529
parent401714d9534aad8c24196b32600da683116bbe09
ALSA: hda - Add a generic reboot_notify

Make codec enter D3 before rebooting or poweroff can fix the noise
issue on some laptops. And in theory it is harmless for all codecs
to enter D3 before rebooting or poweroff, let us add a generic
reboot_notify, then realtek and conexant drivers can call this
function.

Cc: stable@vger.kernel.org
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_generic.h
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_realtek.c