OSDN Git Service

ALSA: hda - Add a generic reboot_notify
authorHui Wang <hui.wang@canonical.com>
Wed, 14 Aug 2019 04:09:08 +0000 (12:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Aug 2019 08:51:43 +0000 (10:51 +0200)
commitf3f82e1041c4017ebadcb6f0f5dfc55ac3efcc48
tree31eebe87fc828ef25a2f0cca1ba2bef317d98b98
parent3248c0892da13ffd05275c86edd2a3287b931962
ALSA: hda - Add a generic reboot_notify

commit 871b9066027702e6e6589da0e1edd3b7dede7205 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/hda/hda_generic.c
sound/pci/hda/hda_generic.h
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_realtek.c