]> 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)
commit6ac4fa7d9c05da015f87a11d08110d78378ea1ae
treec6e270b765412d4f85c016aa8ea95848d6515cdb
parentdda8a736f1f1d5cfb5664cb3eee03000a8e68976
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