Lines Matching refs:dai
146 static int uniphier_aio_set_sysclk(struct snd_soc_dai *dai, int clk_id,
149 struct uniphier_aio *aio = uniphier_priv(dai);
217 static int uniphier_aio_set_pll(struct snd_soc_dai *dai, int pll_id,
221 struct uniphier_aio *aio = uniphier_priv(dai);
234 static int uniphier_aio_set_fmt(struct snd_soc_dai *dai, unsigned int fmt)
236 struct uniphier_aio *aio = uniphier_priv(dai);
255 struct snd_soc_dai *dai)
257 struct uniphier_aio *aio = uniphier_priv(dai);
268 struct snd_soc_dai *dai)
270 struct uniphier_aio *aio = uniphier_priv(dai);
278 struct snd_soc_dai *dai)
280 struct uniphier_aio *aio = uniphier_priv(dai);
300 ret = snd_soc_dai_set_sysclk(dai, AUD_CLK_A,
316 struct snd_soc_dai *dai)
318 struct uniphier_aio *aio = uniphier_priv(dai);
327 struct snd_soc_dai *dai)
329 struct uniphier_aio *aio = uniphier_priv(dai);
358 static int uniphier_aio_dai_probe(struct snd_soc_dai *dai)
360 struct uniphier_aio *aio = uniphier_priv(dai);
367 spec = find_spec(aio, dai->name, i);
384 static int uniphier_aio_dai_remove(struct snd_soc_dai *dai)
386 struct uniphier_aio *aio = uniphier_priv(dai);
393 static int uniphier_aio_ld11_probe(struct snd_soc_dai *dai)
397 ret = uniphier_aio_dai_probe(dai);
401 ret = snd_soc_dai_set_pll(dai, AUD_PLL_A1, 0, 0, 36864000);
404 ret = snd_soc_dai_set_pll(dai, AUD_PLL_F1, 0, 0, 36864000);
408 ret = snd_soc_dai_set_pll(dai, AUD_PLL_A2, 0, 0, 33868800);
411 ret = snd_soc_dai_set_pll(dai, AUD_PLL_F2, 0, 0, 33868800);
418 static int uniphier_aio_pxs2_probe(struct snd_soc_dai *dai)
422 ret = uniphier_aio_dai_probe(dai);
426 ret = snd_soc_dai_set_pll(dai, AUD_PLL_A1, 0, 0, 36864000);
429 ret = snd_soc_dai_set_pll(dai, AUD_PLL_F1, 0, 0, 36864000);
433 ret = snd_soc_dai_set_pll(dai, AUD_PLL_A2, 0, 0, 33868800);
436 ret = snd_soc_dai_set_pll(dai, AUD_PLL_F2, 0, 0, 33868800);
525 static void uniphier_aio_dai_suspend(struct snd_soc_dai *dai)
527 struct uniphier_aio *aio = uniphier_priv(dai);
529 if (!snd_soc_dai_active(dai))
541 struct snd_soc_dai *dai;
543 for_each_component_dais(component, dai)
544 uniphier_aio_dai_suspend(dai);
548 static int uniphier_aio_dai_resume(struct snd_soc_dai *dai)
550 struct uniphier_aio *aio = uniphier_priv(dai);
553 if (!snd_soc_dai_active(dai))
604 struct snd_soc_dai *dai;
607 for_each_component_dais(component, dai)
608 ret |= uniphier_aio_dai_resume(dai);