/* param handle codec handle. param module audio codec module. param powerOn true is power on, false is power down. return kStatus_Success is success, else configure failed.  */
status_t CODEC_SetPower(codec_handle_t *handle, codec_module_t module, bool powerOn)
/* param handle codec handle. param module audio codec module. param powerOn true is power on, false is power down. return kStatus_Success is success, else configure failed.  */
status_t CODEC_SetPower(codec_handle_t *handle, codec_module_t module, bool powerOn)
{
    assert((handle != NULL) && (handle->codecConfig != NULL));
    assert(handle->codecCapability != NULL);
    if ((handle->codecCapability->codecModuleCapability & (1U << module)) == 0U)
    {
        return kStatus_CODEC_NotSupport;
    }
    return HAL_CODEC_SetPower(handle, (uint32_t)module, powerOn);
}