Lines Matching refs:codec_priv

52 struct codec_priv {  struct
102 struct codec_priv codec_priv[2]; member
175 struct codec_priv *codec_priv; in fsl_asoc_card_hw_params() local
214 codec_priv = &priv->codec_priv[codec_idx]; in fsl_asoc_card_hw_params()
216 if (codec_priv->pll_id >= 0 && codec_priv->fll_id >= 0) { in fsl_asoc_card_hw_params()
223 codec_priv->pll_id, in fsl_asoc_card_hw_params()
224 codec_priv->mclk_id, in fsl_asoc_card_hw_params()
225 codec_priv->mclk_freq, pll_out); in fsl_asoc_card_hw_params()
232 codec_priv->fll_id, in fsl_asoc_card_hw_params()
253 struct codec_priv *codec_priv; in fsl_asoc_card_hw_free() local
262 codec_priv = &priv->codec_priv[codec_idx]; in fsl_asoc_card_hw_free()
264 if (!priv->streams && codec_priv->pll_id >= 0 && codec_priv->fll_id >= 0) { in fsl_asoc_card_hw_free()
267 codec_priv->mclk_id, in fsl_asoc_card_hw_free()
268 codec_priv->free_freq, in fsl_asoc_card_hw_free()
276 codec_priv->pll_id, 0, 0, 0); in fsl_asoc_card_hw_free()
572 struct codec_priv *codec_priv; in fsl_asoc_card_late_probe() local
595 codec_priv = &priv->codec_priv[codec_idx]; in fsl_asoc_card_late_probe()
597 ret = snd_soc_dai_set_sysclk(codec_dai, codec_priv->mclk_id, in fsl_asoc_card_late_probe()
598 codec_priv->mclk_freq, SND_SOC_CLOCK_IN); in fsl_asoc_card_late_probe()
604 if (!IS_ERR_OR_NULL(codec_priv->mclk)) in fsl_asoc_card_late_probe()
605 clk_prepare_enable(codec_priv->mclk); in fsl_asoc_card_late_probe()
689 priv->codec_priv[codec_idx].mclk_freq = clk_get_rate(codec_clk); in fsl_asoc_card_probe()
740 priv->codec_priv[codec_idx].fll_id = -1; in fsl_asoc_card_probe()
741 priv->codec_priv[codec_idx].pll_id = -1; in fsl_asoc_card_probe()
747 priv->cpu_priv.sysclk_freq[TX] = priv->codec_priv[0].mclk_freq; in fsl_asoc_card_probe()
748 priv->cpu_priv.sysclk_freq[RX] = priv->codec_priv[0].mclk_freq; in fsl_asoc_card_probe()
755 priv->codec_priv[0].mclk_id = CS427x_SYSCLK_MCLK; in fsl_asoc_card_probe()
759 priv->codec_priv[0].mclk_id = SGTL5000_SYSCLK; in fsl_asoc_card_probe()
775 priv->codec_priv[0].mclk_id = WM8962_SYSCLK_MCLK; in fsl_asoc_card_probe()
776 priv->codec_priv[0].fll_id = WM8962_SYSCLK_FLL; in fsl_asoc_card_probe()
777 priv->codec_priv[0].pll_id = WM8962_FLL; in fsl_asoc_card_probe()
781 priv->codec_priv[0].fll_id = WM8960_SYSCLK_AUTO; in fsl_asoc_card_probe()
782 priv->codec_priv[0].pll_id = WM8960_SYSCLK_AUTO; in fsl_asoc_card_probe()
814 priv->codec_priv[0].mclk_id = WM8994_FLL_SRC_MCLK1; in fsl_asoc_card_probe()
815 priv->codec_priv[0].fll_id = WM8994_SYSCLK_FLL1; in fsl_asoc_card_probe()
816 priv->codec_priv[0].pll_id = WM8994_FLL1; in fsl_asoc_card_probe()
817 priv->codec_priv[0].free_freq = priv->codec_priv[0].mclk_freq; in fsl_asoc_card_probe()
822 priv->codec_priv[0].mclk_id = NAU8822_CLK_MCLK; in fsl_asoc_card_probe()
823 priv->codec_priv[0].fll_id = NAU8822_CLK_PLL; in fsl_asoc_card_probe()
824 priv->codec_priv[0].pll_id = NAU8822_CLK_PLL; in fsl_asoc_card_probe()
827 priv->codec_priv[0].mclk = devm_clk_get(codec_dev[0], NULL); in fsl_asoc_card_probe()
830 priv->codec_priv[0].mclk_id = WM8904_FLL_MCLK; in fsl_asoc_card_probe()
831 priv->codec_priv[0].fll_id = WM8904_CLK_FLL; in fsl_asoc_card_probe()
832 priv->codec_priv[0].pll_id = WM8904_FLL_MCLK; in fsl_asoc_card_probe()
850 &priv->codec_priv[codec_idx].mclk_id); in fsl_asoc_card_probe()