]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8be9df5b0625606d4e0406e27075680bbd40907a
tree8234775a736ee5e4f918bc5dc5e6d9a57d93a529
parent6162f23b2f179fa161a51b7fdddaaf390ac2ca4f
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