Updated module to also free its mixer and gain devices