/sound/soc/stm/ |
D | stm32_sai.c | 49 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()
|
D | stm32_sai_sub.c | 194 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/ |
D | s3c24xx_uda134x.c | 22 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()
|
D | pcm.c | 127 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()
|
D | spdif.c | 83 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/ |
D | t9015.c | 51 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()
|
D | axg-fifo.c | 251 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()
|
D | axg-tdm-formatter.c | 19 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()
|
D | aiu.c | 220 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()
|
D | axg-spdifin.c | 56 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()
|
D | axg-spdifout.c | 62 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()
|
D | axg-pdm.c | 96 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()
|
D | aiu-fifo.c | 156 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/ |
D | skl-ssp-clk.c | 269 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/ |
D | ac97c.c | 36 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/ |
D | inno_rk3036.c | 29 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()
|
D | max98090.c | 1772 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 …]
|
D | rk3328_codec.c | 37 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()
|
D | max9867.c | 21 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/ |
D | atmel-pdmic.c | 30 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()
|
D | atmel-i2s.c | 199 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()
|
D | mchp-i2s-mcc.c | 241 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()
|
D | atmel-classd.c | 30 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()
|
D | mchp-spdiftx.c | 196 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/ |
D | ux500_msp_dai.c | 402 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()
|