/* param handle codec handle. param config codec configuration. return kStatus_Success is success, else initial failed.  */
status_t HAL_CODEC_CS42888_Init(void *handle, void *config)
/* param handle codec handle. param config codec configuration. return kStatus_Success is success, else initial failed.  */
status_t HAL_CODEC_CS42888_Init(void *handle, void *config)
{
    assert((config != NULL) && (handle != NULL));
    status_t ret                = kStatus_Success;
    codec_config_t *codecConfig = (codec_config_t *)config;
    cs42888_config_t *devConfig = (cs42888_config_t *)(codecConfig->codecDevConfig);
    cs42888_handle_t *devHandle = (cs42888_handle_t *)((uint32_t)(((codec_handle_t *)handle)->codecDevHandle));
    ((codec_handle_t *)handle)->codecCapability = &s_cs42888_capability;
    ret = CS42888_Init(devHandle, devConfig);
    if (ret != kStatus_Success)
    {
        return ret;
    }
    return kStatus_Success;
}