• Home
  • Raw
  • Download

Lines Matching refs:priv

103 	struct sspa_priv *priv = snd_soc_dai_get_drvdata(dai);  in mmp_sspa_startup()  local
105 clk_enable(priv->sysclk); in mmp_sspa_startup()
106 clk_enable(priv->sspa->clk); in mmp_sspa_startup()
114 struct sspa_priv *priv = snd_soc_dai_get_drvdata(dai); in mmp_sspa_shutdown() local
116 clk_disable(priv->sspa->clk); in mmp_sspa_shutdown()
117 clk_disable(priv->sysclk); in mmp_sspa_shutdown()
128 struct sspa_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in mmp_sspa_set_dai_sysclk() local
133 ret = clk_set_rate(priv->audio_clk, freq); in mmp_sspa_set_dai_sysclk()
152 struct sspa_priv *priv = snd_soc_dai_get_drvdata(cpu_dai); in mmp_sspa_set_dai_pll() local
157 ret = clk_set_rate(priv->sysclk, freq_out); in mmp_sspa_set_dai_pll()
162 ret = clk_set_rate(priv->sspa->clk, freq_out); in mmp_sspa_set_dai_pll()
367 struct sspa_priv *priv = dev_get_drvdata(dai->dev); in mmp_sspa_probe() local
369 snd_soc_dai_set_drvdata(dai, priv); in mmp_sspa_probe()
414 struct sspa_priv *priv; in asoc_mmp_sspa_probe() local
417 priv = devm_kzalloc(&pdev->dev, in asoc_mmp_sspa_probe()
419 if (!priv) in asoc_mmp_sspa_probe()
422 priv->sspa = devm_kzalloc(&pdev->dev, in asoc_mmp_sspa_probe()
424 if (priv->sspa == NULL) in asoc_mmp_sspa_probe()
427 priv->dma_params = devm_kzalloc(&pdev->dev, in asoc_mmp_sspa_probe()
429 if (priv->dma_params == NULL) in asoc_mmp_sspa_probe()
436 priv->sspa->mmio_base = devm_ioremap_resource(&pdev->dev, res); in asoc_mmp_sspa_probe()
437 if (IS_ERR(priv->sspa->mmio_base)) in asoc_mmp_sspa_probe()
438 return PTR_ERR(priv->sspa->mmio_base); in asoc_mmp_sspa_probe()
440 priv->sspa->clk = devm_clk_get(&pdev->dev, NULL); in asoc_mmp_sspa_probe()
441 if (IS_ERR(priv->sspa->clk)) in asoc_mmp_sspa_probe()
442 return PTR_ERR(priv->sspa->clk); in asoc_mmp_sspa_probe()
444 priv->audio_clk = clk_get(NULL, "mmp-audio"); in asoc_mmp_sspa_probe()
445 if (IS_ERR(priv->audio_clk)) in asoc_mmp_sspa_probe()
446 return PTR_ERR(priv->audio_clk); in asoc_mmp_sspa_probe()
448 priv->sysclk = clk_get(NULL, "mmp-sysclk"); in asoc_mmp_sspa_probe()
449 if (IS_ERR(priv->sysclk)) { in asoc_mmp_sspa_probe()
450 clk_put(priv->audio_clk); in asoc_mmp_sspa_probe()
451 return PTR_ERR(priv->sysclk); in asoc_mmp_sspa_probe()
453 clk_enable(priv->audio_clk); in asoc_mmp_sspa_probe()
454 priv->dai_fmt = (unsigned int) -1; in asoc_mmp_sspa_probe()
455 platform_set_drvdata(pdev, priv); in asoc_mmp_sspa_probe()
463 struct sspa_priv *priv = platform_get_drvdata(pdev); in asoc_mmp_sspa_remove() local
465 clk_disable(priv->audio_clk); in asoc_mmp_sspa_remove()
466 clk_put(priv->audio_clk); in asoc_mmp_sspa_remove()
467 clk_put(priv->sysclk); in asoc_mmp_sspa_remove()