/sound/soc/mediatek/mt8183/ |
D | mt8183-afe-clk.c | 97 afe_priv->clk = devm_kcalloc(afe->dev, CLK_NUM, sizeof(*afe_priv->clk), in mt8183_init_clock() 99 if (!afe_priv->clk) in mt8183_init_clock() 103 afe_priv->clk[i] = devm_clk_get(afe->dev, aud_clks[i]); in mt8183_init_clock() 104 if (IS_ERR(afe_priv->clk[i])) { in mt8183_init_clock() 107 PTR_ERR(afe_priv->clk[i])); in mt8183_init_clock() 108 return PTR_ERR(afe_priv->clk[i]); in mt8183_init_clock() 120 ret = clk_prepare_enable(afe_priv->clk[CLK_INFRA_SYS_AUDIO]); in mt8183_afe_enable_clock() 127 ret = clk_prepare_enable(afe_priv->clk[CLK_MUX_AUDIO]); in mt8183_afe_enable_clock() 134 ret = clk_set_parent(afe_priv->clk[CLK_MUX_AUDIO], in mt8183_afe_enable_clock() 135 afe_priv->clk[CLK_CLK26M]); in mt8183_afe_enable_clock() [all …]
|
/sound/soc/mediatek/mt6797/ |
D | mt6797-afe-clk.c | 39 afe_priv->clk = devm_kcalloc(afe->dev, CLK_NUM, sizeof(*afe_priv->clk), in mt6797_init_clock() 41 if (!afe_priv->clk) in mt6797_init_clock() 45 afe_priv->clk[i] = devm_clk_get(afe->dev, aud_clks[i]); in mt6797_init_clock() 46 if (IS_ERR(afe_priv->clk[i])) { in mt6797_init_clock() 49 PTR_ERR(afe_priv->clk[i])); in mt6797_init_clock() 50 return PTR_ERR(afe_priv->clk[i]); in mt6797_init_clock() 62 ret = clk_prepare_enable(afe_priv->clk[CLK_INFRA_SYS_AUD]); in mt6797_afe_enable_clock() 69 ret = clk_prepare_enable(afe_priv->clk[CLK_INFRA_SYS_AUD_26M]); in mt6797_afe_enable_clock() 76 ret = clk_prepare_enable(afe_priv->clk[CLK_TOP_MUX_AUD]); in mt6797_afe_enable_clock() 83 ret = clk_set_parent(afe_priv->clk[CLK_TOP_MUX_AUD], in mt6797_afe_enable_clock() [all …]
|
D | mt6797-afe-common.h | 44 struct clk; 47 struct clk **clk; member
|
/sound/soc/sh/rcar/ |
D | adg.c | 29 struct clk *clk[CLKMAX]; member 30 struct clk *clkout[CLKOUTMAX]; 49 ((pos) = adg->clk[i]); \ 292 struct clk *clk; in rsnd_adg_clk_query() local 305 for_each_rsnd_clk(clk, adg, i) { in rsnd_adg_clk_query() 368 struct clk *clk; in rsnd_adg_clk_control() local 371 for_each_rsnd_clk(clk, adg, i) { in rsnd_adg_clk_control() 374 ret = clk_prepare_enable(clk); in rsnd_adg_clk_control() 381 adg->clk_rate[i] = clk_get_rate(adg->clk[i]); in rsnd_adg_clk_control() 383 clk_disable_unprepare(clk); in rsnd_adg_clk_control() [all …]
|
/sound/soc/mxs/ |
D | mxs-saif.c | 116 ret = clk_prepare_enable(master_saif->clk); in mxs_saif_set_clk() 128 ret = clk_set_rate(master_saif->clk, 512 * rate); in mxs_saif_set_clk() 135 ret = clk_set_rate(master_saif->clk, 384 * rate); in mxs_saif_set_clk() 139 clk_disable_unprepare(master_saif->clk); in mxs_saif_set_clk() 143 ret = clk_set_rate(master_saif->clk, 512 * rate); in mxs_saif_set_clk() 147 clk_disable_unprepare(master_saif->clk); in mxs_saif_set_clk() 219 clk_disable_unprepare(saif->clk); in mxs_saif_put_mclk() 274 ret = clk_prepare_enable(saif->clk); in mxs_saif_get_mclk() 395 ret = clk_prepare(saif->clk); in mxs_saif_startup() 407 clk_unprepare(saif->clk); in mxs_saif_shutdown() [all …]
|
/sound/soc/rockchip/ |
D | rockchip_pdm.c | 31 struct clk *clk; member 32 struct clk *hclk; 41 unsigned int clk; member 79 unsigned int i, count, clk, div, rate; in get_pdm_clk() local 81 clk = 0; in get_pdm_clk() 83 return clk; in get_pdm_clk() 92 rate = clk_round_rate(pdm->clk, clkref[i].clk); in get_pdm_clk() 93 if (rate != clkref[i].clk) in get_pdm_clk() 95 clk = clkref[i].clk; in get_pdm_clk() 96 *clk_src = clkref[i].clk; in get_pdm_clk() [all …]
|
/sound/soc/mediatek/mt2701/ |
D | mt2701-afe-common.h | 77 struct clk *hop_ck[MTK_STREAM_NUM]; 78 struct clk *sel_ck; 79 struct clk *div_ck; 80 struct clk *mclk_ck; 81 struct clk *asrco_ck; 91 struct clk *base_ck[MT2701_BASE_CLK_NUM]; 92 struct clk *mrgif_ck;
|
/sound/soc/fsl/ |
D | fsl_audmix.c | 47 u8 clk; member 53 { .tdms = 0, .clk = 0, .msg = "" }, 55 { .tdms = 1, .clk = 1, .msg = "DIS->TDM1: TDM1 not started!\n" }, 57 { .tdms = 2, .clk = 2, .msg = "DIS->TDM2: TDM2 not started!\n" }, 59 { .tdms = 3, .clk = 0, .msg = "DIS->MIX: Please start both TDMs!\n" } 61 { .tdms = 1, .clk = 0, .msg = "TDM1->DIS: TDM1 not started!\n" }, 63 { .tdms = 0, .clk = 0, .msg = "" }, 65 { .tdms = 3, .clk = 2, .msg = "TDM1->TDM2: Please start both TDMs!\n" }, 67 { .tdms = 3, .clk = 0, .msg = "TDM1->MIX: Please start both TDMs!\n" } 69 { .tdms = 2, .clk = 0, .msg = "TDM2->DIS: TDM2 not started!\n" }, [all …]
|
/sound/soc/samsung/ |
D | s3c-i2s-v2.h | 53 struct clk *iis_pclk; 54 struct clk *iis_cclk; 68 extern struct clk *s3c_i2sv2_get_clock(struct snd_soc_dai *cpu_dai); 77 unsigned int rate, struct clk *clk);
|
D | s3c24xx_uda134x.c | 21 struct clk *xtal; 22 struct clk *pclk; 124 unsigned int clk = 0; in s3c24xx_uda134x_hw_params() local 157 clk = (fs_mode == S3C2410_IISMOD_384FS ? 384 : 256) * rate; in s3c24xx_uda134x_hw_params() 162 div, clk, err); in s3c24xx_uda134x_hw_params() 170 ret = snd_soc_dai_set_sysclk(cpu_dai, clk_source , clk, in s3c24xx_uda134x_hw_params() 190 ret = snd_soc_dai_set_sysclk(codec_dai, 0, clk, in s3c24xx_uda134x_hw_params()
|
D | jive_wm8750.c | 39 unsigned int clk = 0; in jive_hw_params() local 47 clk = 12288000; in jive_hw_params() 52 clk = 11289600; in jive_hw_params() 60 ret = snd_soc_dai_set_sysclk(codec_dai, WM8750_SYSCLK, clk, in jive_hw_params()
|
/sound/soc/adi/ |
D | axi-spdif.c | 39 struct clk *clk; member 40 struct clk *clk_ref; 202 spdif->clk = devm_clk_get(&pdev->dev, "axi"); in axi_spdif_probe() 203 if (IS_ERR(spdif->clk)) in axi_spdif_probe() 204 return PTR_ERR(spdif->clk); in axi_spdif_probe() 210 ret = clk_prepare_enable(spdif->clk); in axi_spdif_probe() 238 clk_disable_unprepare(spdif->clk); in axi_spdif_probe() 246 clk_disable_unprepare(spdif->clk); in axi_spdif_dev_remove()
|
D | axi-i2s.c | 42 struct clk *clk; member 43 struct clk *clk_ref; 211 i2s->clk = devm_clk_get(&pdev->dev, "axi"); in axi_i2s_probe() 212 if (IS_ERR(i2s->clk)) in axi_i2s_probe() 213 return PTR_ERR(i2s->clk); in axi_i2s_probe() 219 ret = clk_prepare_enable(i2s->clk); in axi_i2s_probe() 273 clk_disable_unprepare(i2s->clk); in axi_i2s_probe() 281 clk_disable_unprepare(i2s->clk); in axi_i2s_dev_remove()
|
/sound/soc/qcom/ |
D | lpass.h | 24 struct clk *ahbix_clk; 27 struct clk *mi2s_osr_clk[LPASS_MAX_MI2S_PORTS]; 30 struct clk *mi2s_bit_clk[LPASS_MAX_MI2S_PORTS]; 51 struct clk *pcnoc_mport_clk; 52 struct clk *pcnoc_sway_clk;
|
/sound/soc/spear/ |
D | spdif_out.c | 35 struct clk *clk; member 69 ret = clk_enable(host->clk); in spdif_out_startup() 87 clk_disable(host->clk); in spdif_out_shutdown() 96 clk_set_rate(host->clk, core_freq); in spdif_out_clock() 97 divider = DIV_ROUND_CLOSEST(clk_get_rate(host->clk), (rate * 128)); in spdif_out_clock() 293 host->clk = devm_clk_get(&pdev->dev, NULL); in spdif_out_probe() 294 if (IS_ERR(host->clk)) in spdif_out_probe() 295 return PTR_ERR(host->clk); in spdif_out_probe() 322 clk_disable(host->clk); in spdif_out_suspend() 333 clk_enable(host->clk); in spdif_out_resume()
|
D | spdif_in.c | 35 struct clk *clk; member 124 clk_enable(host->clk); in spdif_in_trigger() 144 clk_disable(host->clk); in spdif_in_trigger() 228 host->clk = devm_clk_get(&pdev->dev, NULL); in spdif_in_probe() 229 if (IS_ERR(host->clk)) in spdif_in_probe() 230 return PTR_ERR(host->clk); in spdif_in_probe()
|
/sound/soc/pxa/ |
D | imote2.c | 17 unsigned int clk = 0; in imote2_asoc_hw_params() local 25 clk = 12288000; in imote2_asoc_hw_params() 30 clk = 11289600; in imote2_asoc_hw_params() 34 ret = snd_soc_dai_set_sysclk(codec_dai, 0, clk, in imote2_asoc_hw_params() 40 ret = snd_soc_dai_set_sysclk(cpu_dai, PXA2XX_I2S_SYSCLK, clk, in imote2_asoc_hw_params()
|
/sound/soc/tegra/ |
D | tegra_asoc_utils.h | 12 struct clk; 25 struct clk *clk_pll_a; 26 struct clk *clk_pll_a_out0; 27 struct clk *clk_cdev1;
|
/sound/soc/generic/ |
D | simple-card-utils.c | 149 return clk_prepare_enable(dai->clk); in asoc_simple_clk_enable() 157 clk_disable_unprepare(dai->clk); in asoc_simple_clk_disable() 165 struct clk *clk; in asoc_simple_parse_clk() local 174 clk = devm_get_clk_from_child(dev, node, NULL); in asoc_simple_parse_clk() 175 if (!IS_ERR(clk)) { in asoc_simple_parse_clk() 176 simple_dai->sysclk = clk_get_rate(clk); in asoc_simple_parse_clk() 178 simple_dai->clk = clk; in asoc_simple_parse_clk() 182 clk = devm_get_clk_from_child(dev, dlc->of_node, NULL); in asoc_simple_parse_clk() 183 if (!IS_ERR(clk)) in asoc_simple_parse_clk() 184 simple_dai->sysclk = clk_get_rate(clk); in asoc_simple_parse_clk() [all …]
|
/sound/soc/codecs/ |
D | uda1380.c | 535 u16 clk = uda1380_read_reg_cache(component, UDA1380_CLK); in uda1380_pcm_hw_params() local 538 if (clk & R00_DAC_CLK) { in uda1380_pcm_hw_params() 541 clk &= ~0x3; /* clear SEL_LOOP_DIV */ in uda1380_pcm_hw_params() 544 clk |= 0x0; in uda1380_pcm_hw_params() 547 clk |= 0x1; in uda1380_pcm_hw_params() 550 clk |= 0x2; in uda1380_pcm_hw_params() 553 clk |= 0x3; in uda1380_pcm_hw_params() 560 clk |= R00_EN_DAC | R00_EN_INT; in uda1380_pcm_hw_params() 562 clk |= R00_EN_ADC | R00_EN_DEC; in uda1380_pcm_hw_params() 564 uda1380_write(component, UDA1380_CLK, clk); in uda1380_pcm_hw_params() [all …]
|
D | sirf-audio-codec.c | 28 struct clk *clk; member 479 sirf_audio_codec->clk = devm_clk_get(&pdev->dev, NULL); in sirf_audio_codec_driver_probe() 480 if (IS_ERR(sirf_audio_codec->clk)) { in sirf_audio_codec_driver_probe() 482 return PTR_ERR(sirf_audio_codec->clk); in sirf_audio_codec_driver_probe() 485 ret = clk_prepare_enable(sirf_audio_codec->clk); in sirf_audio_codec_driver_probe() 512 clk_disable_unprepare(sirf_audio_codec->clk); in sirf_audio_codec_driver_probe() 520 clk_disable_unprepare(sirf_audio_codec->clk); in sirf_audio_codec_driver_remove() 534 clk_disable_unprepare(sirf_audio_codec->clk); in sirf_audio_codec_suspend() 544 ret = clk_prepare_enable(sirf_audio_codec->clk); in sirf_audio_codec_resume()
|
/sound/ac97/ |
D | bus.c | 398 clk_disable(codec->clk); in ac97_pm_runtime_suspend() 400 clk_disable_unprepare(codec->clk); in ac97_pm_runtime_suspend() 413 ret = clk_enable(codec->clk); in ac97_pm_runtime_resume() 415 ret = clk_prepare_enable(codec->clk); in ac97_pm_runtime_resume() 441 adev->clk = clk_get(&adev->dev, "ac97_clk"); in ac97_get_enable_clk() 442 if (IS_ERR(adev->clk)) in ac97_get_enable_clk() 443 return PTR_ERR(adev->clk); in ac97_get_enable_clk() 445 ret = clk_prepare_enable(adev->clk); in ac97_get_enable_clk() 447 clk_put(adev->clk); in ac97_get_enable_clk() 454 clk_disable_unprepare(adev->clk); in ac97_put_disable_clk() [all …]
|
/sound/soc/hisilicon/ |
D | hi6210-i2s.c | 37 struct clk *clk[8]; member 104 ret = clk_prepare_enable(i2s->clk[n]); in hi6210_i2s_startup() 107 clk_disable_unprepare(i2s->clk[n]); in hi6210_i2s_startup() 112 ret = clk_set_rate(i2s->clk[CLK_I2S_BASE], 49152000); in hi6210_i2s_startup() 177 clk_disable_unprepare(i2s->clk[n]); in hi6210_i2s_shutdown() 572 i2s->clk[CLK_DACODEC] = devm_clk_get(&pdev->dev, "dacodec"); in hi6210_i2s_probe() 573 if (IS_ERR_OR_NULL(i2s->clk[CLK_DACODEC])) in hi6210_i2s_probe() 574 return PTR_ERR(i2s->clk[CLK_DACODEC]); in hi6210_i2s_probe() 577 i2s->clk[CLK_I2S_BASE] = devm_clk_get(&pdev->dev, "i2s-base"); in hi6210_i2s_probe() 578 if (IS_ERR_OR_NULL(i2s->clk[CLK_I2S_BASE])) in hi6210_i2s_probe() [all …]
|
/sound/soc/uniphier/ |
D | evea.c | 48 struct clk *clk, *clk_exiv; member 337 clk_disable_unprepare(evea->clk); in evea_codec_suspend() 347 ret = clk_prepare_enable(evea->clk); in evea_codec_resume() 382 clk_disable_unprepare(evea->clk); in evea_codec_resume() 461 evea->clk = devm_clk_get(&pdev->dev, "evea"); in evea_probe() 462 if (IS_ERR(evea->clk)) in evea_probe() 463 return PTR_ERR(evea->clk); in evea_probe() 486 ret = clk_prepare_enable(evea->clk); in evea_probe() 535 clk_disable_unprepare(evea->clk); in evea_probe() 549 clk_disable_unprepare(evea->clk); in evea_remove()
|
/sound/soc/ux500/ |
D | ux500_msp_dai.h | 59 struct clk *clk; member 60 struct clk *pclk;
|