]> 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)
commit6eff0db55a71a14e077e441068055936d27a9673
tree8234775a736ee5e4f918bc5dc5e6d9a57d93a529
parent5d712a684d9da286676f48639b50446dc5eddb55
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