For cards with mixer devices, call IoRegisterShutdownNotification so that the IRP_MJ_SHUTDOWN entry point in the driver object is called when the system is shut down. Within the shutdown routine, save the mixer settings in the registry.