ctrl_destroy()

Your Audio HW DLL must provide an entry point called ctrl_destroy(), of type ado_ctrl_dll_destroy_t. The io-audio manager calls ctrl_destroy() whenever the card is unmounted. The prototype is:

int32_t ctrl_destroy( HW_CONTEXT_T **hw_context );

This function undoes whatever you did in your ctrl_init() function. Typically, your ctrl_destroy() function:

If the cleanup is successful, ctrl_destroy() should return 0. If an error occurs, ctrl_destroy() should return -1.