/* param handle codec handle. param config codec configuration. return kStatus_Success is success, else initial failed.  */
status_t HAL_CODEC_SGTL5000_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_SGTL5000_Init(void *handle, void *config)
{
    assert((config != NULL) && (handle != NULL));
    codec_config_t *codecConfig = (codec_config_t *)config;
    sgtl_config_t *sgtlConfig = (sgtl_config_t *)(codecConfig->codecDevConfig);
    sgtl_handle_t *sgtlHandle = (sgtl_handle_t *)((uint32_t)(((codec_handle_t *)handle)->codecDevHandle));
    ((codec_handle_t *)handle)->codecCapability = &s_sgtl5000_capability;
    return SGTL_Init(sgtlHandle, sgtlConfig);
}