/* Initialize the spdif module and set the ssi to default status. This function will be called by the snd_card driver. */
int32_t spdif_init(void *priv)
/* Initialize the spdif module and set the ssi to default status. This function will be called by the snd_card driver. */
int32_t spdif_init(void *priv)
{
    audio_ctrl_p ctrl = (audio_ctrl_p) priv;
    spdif_iomux_config();
    spdif_soft_reset(ctrl);
    spdif_clk_cfg();
    return 0;
}