Home
last modified time | relevance | path

Searched refs:pclk (Results 1 – 25 of 29) sorted by relevance

12

/sound/soc/samsung/
Ds3c24xx_uda134x.c22 struct clk *pclk; member
65 priv->pclk = clk_get(cpu_dai->dev, "iis"); in s3c24xx_uda134x_startup()
66 if (IS_ERR(priv->pclk)) { in s3c24xx_uda134x_startup()
70 ret = PTR_ERR(priv->pclk); in s3c24xx_uda134x_startup()
81 rates[i*33 + j] = clk_get_rate(priv->pclk) / in s3c24xx_uda134x_startup()
112 clk_put(priv->pclk); in s3c24xx_uda134x_shutdown()
113 priv->pclk = NULL; in s3c24xx_uda134x_shutdown()
Dpcm.c122 struct clk *pclk; member
281 clk = pcm->pclk; in s3c_pcm_hw_params()
527 pcm->pclk = devm_clk_get(&pdev->dev, "pcm"); in s3c_pcm_dev_probe()
528 if (IS_ERR(pcm->pclk)) { in s3c_pcm_dev_probe()
530 ret = PTR_ERR(pcm->pclk); in s3c_pcm_dev_probe()
533 ret = clk_prepare_enable(pcm->pclk); in s3c_pcm_dev_probe()
571 clk_disable_unprepare(pcm->pclk); in s3c_pcm_dev_probe()
583 clk_disable_unprepare(pcm->pclk); in s3c_pcm_dev_remove()
Dspdif.c83 struct clk *pclk; member
383 spdif->pclk = devm_clk_get(&pdev->dev, "spdif"); in spdif_probe()
384 if (IS_ERR(spdif->pclk)) { in spdif_probe()
389 ret = clk_prepare_enable(spdif->pclk); in spdif_probe()
451 clk_disable_unprepare(spdif->pclk); in spdif_probe()
468 clk_disable_unprepare(spdif->pclk); in spdif_remove()
/sound/soc/stm/
Dstm32_sai.c49 clk_disable_unprepare(sai->pclk); in stm32_sai_pclk_disable()
59 ret = clk_prepare_enable(sai->pclk); in stm32_sai_pclk_enable()
175 sai->pclk = devm_clk_get(&pdev->dev, "pclk"); in stm32_sai_probe()
176 if (IS_ERR(sai->pclk)) { in stm32_sai_probe()
178 return PTR_ERR(sai->pclk); in stm32_sai_probe()
208 ret = clk_prepare_enable(sai->pclk); in stm32_sai_probe()
229 clk_disable_unprepare(sai->pclk); in stm32_sai_probe()
Dstm32_sai_sub.c193 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_up()
199 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_up()
210 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_wr()
216 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_wr()
226 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_rd()
232 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_rd()
1478 ret = clk_prepare(sai->pdata->pclk); in stm32_sai_sub_parse_of()
1567 clk_unprepare(sai->pdata->pclk); in stm32_sai_sub_remove()
1580 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_suspend()
1587 clk_disable(sai->pdata->pclk); in stm32_sai_sub_suspend()
[all …]
/sound/soc/meson/
Daxg-fifo.c245 ret = clk_prepare_enable(fifo->pclk); in axg_fifo_pcm_open()
272 clk_disable_unprepare(fifo->pclk); in axg_fifo_pcm_open()
287 clk_disable_unprepare(fifo->pclk); in axg_fifo_pcm_close()
365 fifo->pclk = devm_clk_get(dev, NULL); in axg_fifo_probe()
366 if (IS_ERR(fifo->pclk)) { in axg_fifo_probe()
367 if (PTR_ERR(fifo->pclk) != -EPROBE_DEFER) in axg_fifo_probe()
369 PTR_ERR(fifo->pclk)); in axg_fifo_probe()
370 return PTR_ERR(fifo->pclk); in axg_fifo_probe()
Daxg-tdm-formatter.c19 struct clk *pclk; member
203 ret = clk_prepare_enable(formatter->pclk); in axg_tdm_formatter_power_up()
225 clk_disable_unprepare(formatter->pclk); in axg_tdm_formatter_power_up()
232 clk_disable_unprepare(formatter->pclk); in axg_tdm_formatter_power_down()
294 formatter->pclk = devm_clk_get(dev, "pclk"); in axg_tdm_formatter_probe()
295 if (IS_ERR(formatter->pclk)) { in axg_tdm_formatter_probe()
296 ret = PTR_ERR(formatter->pclk); in axg_tdm_formatter_probe()
Daxg-spdifin.c56 struct clk *pclk; member
217 ret = clk_prepare_enable(priv->pclk); in axg_spdifin_dai_probe()
242 clk_disable_unprepare(priv->pclk); in axg_spdifin_dai_probe()
252 clk_disable_unprepare(priv->pclk); in axg_spdifin_dai_remove()
466 priv->pclk = devm_clk_get(dev, "pclk"); in axg_spdifin_probe()
467 if (IS_ERR(priv->pclk)) { in axg_spdifin_probe()
468 ret = PTR_ERR(priv->pclk); in axg_spdifin_probe()
Daxg-spdifout.c62 struct clk *pclk; member
252 ret = clk_prepare_enable(priv->pclk); in axg_spdifout_startup()
283 clk_disable_unprepare(priv->pclk); in axg_spdifout_shutdown()
423 priv->pclk = devm_clk_get(dev, "pclk"); in axg_spdifout_probe()
424 if (IS_ERR(priv->pclk)) { in axg_spdifout_probe()
425 ret = PTR_ERR(priv->pclk); in axg_spdifout_probe()
Daxg-pdm.c96 struct clk *pclk; member
386 ret = clk_prepare_enable(priv->pclk); in axg_pdm_dai_probe()
429 clk_disable_unprepare(priv->pclk); in axg_pdm_dai_probe()
438 clk_disable_unprepare(priv->pclk); in axg_pdm_dai_remove()
613 priv->pclk = devm_clk_get(dev, "pclk"); in axg_pdm_probe()
614 if (IS_ERR(priv->pclk)) { in axg_pdm_probe()
615 ret = PTR_ERR(priv->pclk); in axg_pdm_probe()
Daxg-toddr.c96 ret = clk_prepare_enable(fifo->pclk); in axg_toddr_dai_startup()
118 clk_disable_unprepare(fifo->pclk); in axg_toddr_dai_shutdown()
Daxg-fifo.h68 struct clk *pclk; member
Daxg-frddr.c57 ret = clk_prepare_enable(fifo->pclk); in axg_frddr_dai_startup()
82 clk_disable_unprepare(fifo->pclk); in axg_frddr_dai_shutdown()
/sound/soc/intel/skylake/
Dskl-ssp-clk.c269 static void unregister_parent_src_clk(struct skl_clk_parent *pclk, in unregister_parent_src_clk() argument
273 clkdev_drop(pclk[id].lookup); in unregister_parent_src_clk()
274 clk_hw_unregister_fixed_rate(pclk[id].hw); in unregister_parent_src_clk()
286 struct skl_clk_parent_src *pclk) in skl_register_parent_clks() argument
293 parent[i].hw = clk_hw_register_fixed_rate(dev, pclk[i].name, in skl_register_parent_clks()
294 pclk[i].parent_name, 0, pclk[i].rate); in skl_register_parent_clks()
300 parent[i].lookup = clkdev_hw_create(parent[i].hw, pclk[i].name, in skl_register_parent_clks()
/sound/atmel/
Dac97c.c36 struct clk *pclk; member
720 struct clk *pclk; in atmel_ac97c_probe() local
740 pclk = clk_get(&pdev->dev, "ac97_clk"); in atmel_ac97c_probe()
741 if (IS_ERR(pclk)) { in atmel_ac97c_probe()
743 return PTR_ERR(pclk); in atmel_ac97c_probe()
745 retval = clk_prepare_enable(pclk); in atmel_ac97c_probe()
773 chip->pclk = pclk; in atmel_ac97c_probe()
831 clk_disable_unprepare(pclk); in atmel_ac97c_probe()
833 clk_put(pclk); in atmel_ac97c_probe()
843 clk_disable_unprepare(chip->pclk); in atmel_ac97c_suspend()
[all …]
/sound/soc/codecs/
Dinno_rk3036.c29 struct clk *pclk; member
439 priv->pclk = devm_clk_get(&pdev->dev, "acodec_pclk"); in rk3036_codec_platform_probe()
440 if (IS_ERR(priv->pclk)) in rk3036_codec_platform_probe()
441 return PTR_ERR(priv->pclk); in rk3036_codec_platform_probe()
443 ret = clk_prepare_enable(priv->pclk); in rk3036_codec_platform_probe()
456 clk_disable_unprepare(priv->pclk); in rk3036_codec_platform_probe()
467 clk_disable_unprepare(priv->pclk); in rk3036_codec_platform_remove()
Dmax98090.c1770 int pclk; member
1779 .pclk = 11289600,
1790 .pclk = 12000000,
1801 .pclk = 12288000,
1812 .pclk = 13000000,
1823 .pclk = 19200000,
1835 static int max98090_find_divisor(int target_freq, int pclk) in max98090_find_divisor() argument
1843 test_diff = abs(target_freq - (pclk / dmic_divisors[i])); in max98090_find_divisor()
1853 static int max98090_find_closest_pclk(int pclk) in max98090_find_closest_pclk() argument
1860 if (pclk == dmic_table[i].pclk) in max98090_find_closest_pclk()
[all …]
Dmax9867.c165 unsigned int sysclk, pclk; member
190 max9867->pclk); in max9867_dai_hw_params()
202 ratio = max9867->pclk / rate; in max9867_dai_hw_params()
267 max9867->pclk = freq; in max9867_set_dai_sysclk()
270 max9867->pclk = freq / 2; in max9867_set_dai_sysclk()
273 max9867->pclk = freq / 4; in max9867_set_dai_sysclk()
Drk3328_codec.c36 struct clk *pclk; member
472 rk3328->pclk = devm_clk_get(&pdev->dev, "pclk"); in rk3328_platform_probe()
473 if (IS_ERR(rk3328->pclk)) { in rk3328_platform_probe()
475 ret = PTR_ERR(rk3328->pclk); in rk3328_platform_probe()
479 ret = clk_prepare_enable(rk3328->pclk); in rk3328_platform_probe()
509 clk_disable_unprepare(rk3328->pclk); in rk3328_platform_probe()
/sound/soc/atmel/
Datmel-pdmic.c30 struct clk *pclk; member
115 ret = clk_prepare_enable(dd->pclk); in atmel_pdmic_cpu_dai_startup()
142 clk_disable_unprepare(dd->pclk); in atmel_pdmic_cpu_dai_shutdown()
422 pclk_rate = clk_get_rate(dd->pclk); in atmel_pdmic_codec_dai_hw_params()
549 u32 clk_max_rate = (u32)(clk_get_rate(dd->pclk) >> 1); in atmel_pdmic_get_sample_rate()
618 dd->pclk = devm_clk_get(dev, "pclk"); in atmel_pdmic_probe()
619 if (IS_ERR(dd->pclk)) { in atmel_pdmic_probe()
620 ret = PTR_ERR(dd->pclk); in atmel_pdmic_probe()
635 ret = clk_set_rate(dd->gclk, clk_get_rate(dd->pclk)/3); in atmel_pdmic_probe()
Datmel-i2s.c199 struct clk *pclk; member
655 dev->pclk = devm_clk_get(&pdev->dev, "pclk"); in atmel_i2s_probe()
656 if (IS_ERR(dev->pclk)) { in atmel_i2s_probe()
657 err = PTR_ERR(dev->pclk); in atmel_i2s_probe()
683 err = clk_prepare_enable(dev->pclk); in atmel_i2s_probe()
700 clk_disable_unprepare(dev->pclk); in atmel_i2s_probe()
715 clk_disable_unprepare(dev->pclk); in atmel_i2s_probe()
726 clk_disable_unprepare(dev->pclk); in atmel_i2s_remove()
Dmchp-i2s-mcc.c233 struct clk *pclk; member
439 ret = mchp_i2s_mcc_clk_get_rate_diff(dev->pclk, clk_rate, in mchp_i2s_mcc_config_divs()
461 best_clk == dev->pclk ? "pclk" : "gclk", in mchp_i2s_mcc_config_divs()
914 dev->pclk = devm_clk_get(&pdev->dev, "pclk"); in mchp_i2s_mcc_probe()
915 if (IS_ERR(dev->pclk)) { in mchp_i2s_mcc_probe()
916 err = PTR_ERR(dev->pclk); in mchp_i2s_mcc_probe()
936 err = clk_prepare_enable(dev->pclk); in mchp_i2s_mcc_probe()
948 clk_disable_unprepare(dev->pclk); in mchp_i2s_mcc_probe()
958 clk_disable_unprepare(dev->pclk); in mchp_i2s_mcc_probe()
974 clk_disable_unprepare(dev->pclk); in mchp_i2s_mcc_remove()
Datmel-classd.c30 struct clk *pclk; member
126 return clk_prepare_enable(dd->pclk); in atmel_classd_cpu_dai_startup()
135 clk_disable_unprepare(dd->pclk); in atmel_classd_cpu_dai_shutdown()
577 dd->pclk = devm_clk_get(dev, "pclk"); in atmel_classd_probe()
578 if (IS_ERR(dd->pclk)) { in atmel_classd_probe()
579 ret = PTR_ERR(dd->pclk); in atmel_classd_probe()
/sound/soc/ux500/
Dux500_msp_dai.c402 ret = clk_prepare_enable(drvdata->pclk); in ux500_msp_dai_startup()
418 clk_disable_unprepare(drvdata->pclk); in ux500_msp_dai_startup()
449 clk_disable_unprepare(drvdata->pclk); in ux500_msp_dai_shutdown()
775 drvdata->pclk = devm_clk_get(&pdev->dev, "apb_pclk"); in ux500_msp_drv_probe()
776 if (IS_ERR(drvdata->pclk)) { in ux500_msp_drv_probe()
777 ret = (int)PTR_ERR(drvdata->pclk); in ux500_msp_drv_probe()
Dux500_msp_dai.h60 struct clk *pclk; member

12