]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/ca0132: Add extra exit functions for R3Di and SBZ
authorConnor McAdams <conmanx360@gmail.com>
Tue, 8 May 2018 17:20:04 +0000 (13:20 -0400)
committerTakashi Iwai <tiwai@suse.de>
Sun, 13 May 2018 07:29:27 +0000 (09:29 +0200)
commit299f97c6114285132f07ee6a81a825d0c0df914c
treec6e270b765412d4f85c016aa8ea95848d6515cdb
parentafc8f9f09252a7a693b4c572d4764afd67b5c033
ALSA: hda/ca0132: Add extra exit functions for R3Di and SBZ

This patch adds extra functions for shutdown on the Sound Blaster Z and
Recon3Di. The Recon3Di only has one specific functions, which sets the
GPIO data pins to 0 to prevent a popping noise.

The Sound Blaster Z exit sequence was taken from Windows. Without this
exit function, the card will not reload properly unless the PC has been
shutdown to clear the onboard memory. There are commented out functions
currently in the sbz_exit_chip function that are added in a later patch.

Also, a reboot notify function has been added, to make sure these
functions are ran before a reboot. This helps when using the card
through VFIO in a virtual machine, to make sure the card reloads the DSP
properly.

Signed-off-by: Connor McAdams <conmanx360@gmail.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_ca0132.c