Home
last modified time | relevance | path

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

12

/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()
177 if (PTR_ERR(sai->pclk) != -EPROBE_DEFER) in stm32_sai_probe()
179 PTR_ERR(sai->pclk)); in stm32_sai_probe()
180 return PTR_ERR(sai->pclk); in stm32_sai_probe()
218 ret = clk_prepare_enable(sai->pclk); in stm32_sai_probe()
239 clk_disable_unprepare(sai->pclk); in stm32_sai_probe()
Dstm32_sai_sub.c194 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_up()
200 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_up()
211 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_wr()
217 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_wr()
227 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_reg_rd()
233 clk_disable(sai->pdata->pclk); in stm32_sai_sub_reg_rd()
1482 ret = clk_prepare(sai->pdata->pclk); in stm32_sai_sub_parse_of()
1576 clk_unprepare(sai->pdata->pclk); in stm32_sai_sub_remove()
1590 ret = clk_enable(sai->pdata->pclk); in stm32_sai_sub_suspend()
1597 clk_disable(sai->pdata->pclk); in stm32_sai_sub_suspend()
[all …]
/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.c127 struct clk *pclk; member
286 clk = pcm->pclk; in s3c_pcm_hw_params()
531 pcm->pclk = devm_clk_get(&pdev->dev, "pcm"); in s3c_pcm_dev_probe()
532 if (IS_ERR(pcm->pclk)) { in s3c_pcm_dev_probe()
534 ret = PTR_ERR(pcm->pclk); in s3c_pcm_dev_probe()
537 ret = clk_prepare_enable(pcm->pclk); in s3c_pcm_dev_probe()
575 clk_disable_unprepare(pcm->pclk); in s3c_pcm_dev_probe()
587 clk_disable_unprepare(pcm->pclk); in s3c_pcm_dev_remove()
Dspdif.c83 struct clk *pclk; member
389 spdif->pclk = devm_clk_get(&pdev->dev, "spdif"); in spdif_probe()
390 if (IS_ERR(spdif->pclk)) { in spdif_probe()
395 ret = clk_prepare_enable(spdif->pclk); in spdif_probe()
457 clk_disable_unprepare(spdif->pclk); in spdif_probe()
474 clk_disable_unprepare(spdif->pclk); in spdif_remove()
/sound/soc/meson/
Dt9015.c51 struct clk *pclk; member
260 priv->pclk = devm_clk_get(dev, "pclk"); in t9015_probe()
261 if (IS_ERR(priv->pclk)) { in t9015_probe()
262 if (PTR_ERR(priv->pclk) != -EPROBE_DEFER) in t9015_probe()
264 return PTR_ERR(priv->pclk); in t9015_probe()
274 ret = clk_prepare_enable(priv->pclk); in t9015_probe()
282 priv->pclk); in t9015_probe()
Daxg-fifo.c251 ret = clk_prepare_enable(fifo->pclk); in axg_fifo_pcm_open()
278 clk_disable_unprepare(fifo->pclk); in axg_fifo_pcm_open()
295 clk_disable_unprepare(fifo->pclk); in axg_fifo_pcm_close()
353 fifo->pclk = devm_clk_get(dev, NULL); in axg_fifo_probe()
354 if (IS_ERR(fifo->pclk)) { in axg_fifo_probe()
355 if (PTR_ERR(fifo->pclk) != -EPROBE_DEFER) in axg_fifo_probe()
357 PTR_ERR(fifo->pclk)); in axg_fifo_probe()
358 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()
Daiu.c220 aiu->pclk = devm_clk_get(dev, "pclk"); in aiu_clk_get()
221 if (IS_ERR(aiu->pclk)) { in aiu_clk_get()
222 if (PTR_ERR(aiu->pclk) != -EPROBE_DEFER) in aiu_clk_get()
224 return PTR_ERR(aiu->pclk); in aiu_clk_get()
250 ret = clk_prepare_enable(aiu->pclk); in aiu_clk_get()
258 aiu->pclk); in aiu_clk_get()
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()
424 priv->pclk = devm_clk_get(dev, "pclk"); in axg_spdifout_probe()
425 if (IS_ERR(priv->pclk)) { in axg_spdifout_probe()
426 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()
Daiu-fifo.c156 ret = clk_prepare_enable(fifo->pclk); in aiu_fifo_startup()
163 clk_disable_unprepare(fifo->pclk); in aiu_fifo_startup()
174 clk_disable_unprepare(fifo->pclk); in aiu_fifo_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
704 struct clk *pclk; in atmel_ac97c_probe() local
724 pclk = clk_get(&pdev->dev, "ac97_clk"); in atmel_ac97c_probe()
725 if (IS_ERR(pclk)) { in atmel_ac97c_probe()
727 return PTR_ERR(pclk); in atmel_ac97c_probe()
729 retval = clk_prepare_enable(pclk); in atmel_ac97c_probe()
757 chip->pclk = pclk; in atmel_ac97c_probe()
815 clk_disable_unprepare(pclk); in atmel_ac97c_probe()
817 clk_put(pclk); in atmel_ac97c_probe()
827 clk_disable_unprepare(chip->pclk); in atmel_ac97c_suspend()
[all …]
/sound/soc/codecs/
Dinno_rk3036.c29 struct clk *pclk; member
437 priv->pclk = devm_clk_get(&pdev->dev, "acodec_pclk"); in rk3036_codec_platform_probe()
438 if (IS_ERR(priv->pclk)) in rk3036_codec_platform_probe()
439 return PTR_ERR(priv->pclk); in rk3036_codec_platform_probe()
441 ret = clk_prepare_enable(priv->pclk); in rk3036_codec_platform_probe()
454 clk_disable_unprepare(priv->pclk); in rk3036_codec_platform_probe()
465 clk_disable_unprepare(priv->pclk); in rk3036_codec_platform_remove()
Dmax98090.c1772 int pclk; member
1781 .pclk = 11289600,
1792 .pclk = 12000000,
1803 .pclk = 12288000,
1814 .pclk = 13000000,
1825 .pclk = 19200000,
1837 static int max98090_find_divisor(int target_freq, int pclk) in max98090_find_divisor() argument
1845 test_diff = abs(target_freq - (pclk / dmic_divisors[i])); in max98090_find_divisor()
1855 static int max98090_find_closest_pclk(int pclk) in max98090_find_closest_pclk() argument
1862 if (pclk == dmic_table[i].pclk) in max98090_find_closest_pclk()
[all …]
Drk3328_codec.c37 struct clk *pclk; member
474 rk3328->pclk = devm_clk_get(&pdev->dev, "pclk"); in rk3328_platform_probe()
475 if (IS_ERR(rk3328->pclk)) { in rk3328_platform_probe()
477 ret = PTR_ERR(rk3328->pclk); in rk3328_platform_probe()
481 ret = clk_prepare_enable(rk3328->pclk); in rk3328_platform_probe()
511 clk_disable_unprepare(rk3328->pclk); in rk3328_platform_probe()
Dmax9867.c21 unsigned int sysclk, pclk; member
331 max9867->pclk); in max9867_dai_hw_params()
343 ratio = max9867->pclk / rate; in max9867_dai_hw_params()
408 max9867->pclk = freq; in max9867_set_dai_sysclk()
411 max9867->pclk = freq / 2; in max9867_set_dai_sysclk()
414 max9867->pclk = freq / 4; in max9867_set_dai_sysclk()
/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()
405 pclk_rate = clk_get_rate(dd->pclk); in atmel_pdmic_cpu_dai_hw_params()
530 u32 clk_max_rate = (u32)(clk_get_rate(dd->pclk) >> 1); in atmel_pdmic_get_sample_rate()
599 dd->pclk = devm_clk_get(dev, "pclk"); in atmel_pdmic_probe()
600 if (IS_ERR(dd->pclk)) { in atmel_pdmic_probe()
601 ret = PTR_ERR(dd->pclk); in atmel_pdmic_probe()
616 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.c241 struct clk *pclk; member
461 ret = mchp_i2s_mcc_clk_get_rate_diff(dev->pclk, clk_rate, in mchp_i2s_mcc_config_divs()
483 best_clk == dev->pclk ? "pclk" : "gclk", in mchp_i2s_mcc_config_divs()
1029 dev->pclk = devm_clk_get(&pdev->dev, "pclk"); in mchp_i2s_mcc_probe()
1030 if (IS_ERR(dev->pclk)) { in mchp_i2s_mcc_probe()
1031 err = PTR_ERR(dev->pclk); in mchp_i2s_mcc_probe()
1056 err = clk_prepare_enable(dev->pclk); in mchp_i2s_mcc_probe()
1068 clk_disable_unprepare(dev->pclk); in mchp_i2s_mcc_probe()
1078 clk_disable_unprepare(dev->pclk); in mchp_i2s_mcc_probe()
1094 clk_disable_unprepare(dev->pclk); in mchp_i2s_mcc_remove()
Datmel-classd.c30 struct clk *pclk; member
127 err = clk_prepare_enable(dd->pclk); in atmel_classd_cpu_dai_startup()
132 clk_disable_unprepare(dd->pclk); in atmel_classd_cpu_dai_startup()
546 dd->pclk = devm_clk_get(dev, "pclk"); in atmel_classd_probe()
547 if (IS_ERR(dd->pclk)) { in atmel_classd_probe()
548 ret = PTR_ERR(dd->pclk); in atmel_classd_probe()
Dmchp-spdiftx.c196 struct clk *pclk; member
717 ret = clk_prepare_enable(dev->pclk); in mchp_spdiftx_dai_probe()
735 clk_disable_unprepare(dev->pclk); in mchp_spdiftx_dai_remove()
802 dev->pclk = devm_clk_get(&pdev->dev, "pclk"); in mchp_spdiftx_probe()
803 if (IS_ERR(dev->pclk)) { in mchp_spdiftx_probe()
804 err = PTR_ERR(dev->pclk); in mchp_spdiftx_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()
773 drvdata->pclk = devm_clk_get(&pdev->dev, "apb_pclk"); in ux500_msp_drv_probe()
774 if (IS_ERR(drvdata->pclk)) { in ux500_msp_drv_probe()
775 ret = (int)PTR_ERR(drvdata->pclk); in ux500_msp_drv_probe()

12