Lines Matching refs:codec_priv
47 struct codec_priv { struct
94 struct codec_priv codec_priv; member
167 struct codec_priv *codec_priv = &priv->codec_priv; in fsl_asoc_card_hw_params() local
199 if (codec_priv->pll_id && codec_priv->fll_id) { in fsl_asoc_card_hw_params()
206 codec_priv->pll_id, in fsl_asoc_card_hw_params()
207 codec_priv->mclk_id, in fsl_asoc_card_hw_params()
208 codec_priv->mclk_freq, pll_out); in fsl_asoc_card_hw_params()
215 codec_priv->fll_id, in fsl_asoc_card_hw_params()
235 struct codec_priv *codec_priv = &priv->codec_priv; in fsl_asoc_card_hw_free() local
241 if (!priv->streams && codec_priv->pll_id && codec_priv->fll_id) { in fsl_asoc_card_hw_free()
244 codec_priv->mclk_id, in fsl_asoc_card_hw_free()
245 codec_priv->free_freq, in fsl_asoc_card_hw_free()
253 codec_priv->pll_id, 0, 0, 0); in fsl_asoc_card_hw_free()
497 struct codec_priv *codec_priv = &priv->codec_priv; in fsl_asoc_card_late_probe() local
518 ret = snd_soc_dai_set_sysclk(codec_dai, codec_priv->mclk_id, in fsl_asoc_card_late_probe()
519 codec_priv->mclk_freq, SND_SOC_CLOCK_IN); in fsl_asoc_card_late_probe()
593 priv->codec_priv.mclk_freq = clk_get_rate(codec_clk); in fsl_asoc_card_probe()
613 priv->cpu_priv.sysclk_freq[TX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
614 priv->cpu_priv.sysclk_freq[RX] = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
621 priv->codec_priv.mclk_id = CS427x_SYSCLK_MCLK; in fsl_asoc_card_probe()
625 priv->codec_priv.mclk_id = SGTL5000_SYSCLK; in fsl_asoc_card_probe()
641 priv->codec_priv.mclk_id = WM8962_SYSCLK_MCLK; in fsl_asoc_card_probe()
642 priv->codec_priv.fll_id = WM8962_SYSCLK_FLL; in fsl_asoc_card_probe()
643 priv->codec_priv.pll_id = WM8962_FLL; in fsl_asoc_card_probe()
647 priv->codec_priv.fll_id = WM8960_SYSCLK_AUTO; in fsl_asoc_card_probe()
648 priv->codec_priv.pll_id = WM8960_SYSCLK_AUTO; in fsl_asoc_card_probe()
680 priv->codec_priv.mclk_id = WM8994_FLL_SRC_MCLK1; in fsl_asoc_card_probe()
681 priv->codec_priv.fll_id = WM8994_SYSCLK_FLL1; in fsl_asoc_card_probe()
682 priv->codec_priv.pll_id = WM8994_FLL1; in fsl_asoc_card_probe()
683 priv->codec_priv.free_freq = priv->codec_priv.mclk_freq; in fsl_asoc_card_probe()
696 of_property_read_u32(np, "mclk-id", &priv->codec_priv.mclk_id); in fsl_asoc_card_probe()