/sound/soc/sh/rcar/ |
D | adg.c | 32 struct clk *clk[CLKMAX]; member 33 struct clk *clkout[CLKOUTMAX]; 44 ((pos) = adg->clk[i]); \ 176 clk_get_rate(adg->clk[CLKA]), /* 0000: CLKA */ in rsnd_adg_set_convert_clk_gen2() 177 clk_get_rate(adg->clk[CLKB]), /* 0001: CLKB */ in rsnd_adg_set_convert_clk_gen2() 178 clk_get_rate(adg->clk[CLKC]), /* 0010: CLKC */ in rsnd_adg_set_convert_clk_gen2() 257 clk_get_rate(adg->clk[CLKA]), /* 000: CLKA */ in rsnd_adg_set_convert_clk_gen1() 258 clk_get_rate(adg->clk[CLKB]), /* 001: CLKB */ in rsnd_adg_set_convert_clk_gen1() 259 clk_get_rate(adg->clk[CLKC]), /* 010: CLKC */ in rsnd_adg_set_convert_clk_gen1() 356 struct clk *clk; in rsnd_adg_ssi_clk_try_start() local [all …]
|
D | rsrc-card.c | 53 struct clk *clk; member 80 return clk_prepare_enable(dai_props->clk); in rsrc_card_startup() 90 clk_disable_unprepare(dai_props->clk); in rsrc_card_shutdown() 279 struct clk *clk; in rsrc_card_parse_clk() local 291 clk = of_clk_get(np, 0); in rsrc_card_parse_clk() 292 if (IS_ERR(clk)) in rsrc_card_parse_clk() 293 return PTR_ERR(clk); in rsrc_card_parse_clk() 295 dai_props->sysclk = clk_get_rate(clk); in rsrc_card_parse_clk() 296 dai_props->clk = clk; in rsrc_card_parse_clk() 300 clk = of_clk_get(of_np, 0); in rsrc_card_parse_clk() [all …]
|
D | ctu.c | 116 struct clk *clk; in rsnd_ctu_probe() local 145 clk = devm_clk_get(dev, name); in rsnd_ctu_probe() 146 if (IS_ERR(clk)) in rsnd_ctu_probe() 147 return PTR_ERR(clk); in rsnd_ctu_probe() 152 clk, RSND_MOD_CTU, i); in rsnd_ctu_probe()
|
D | mix.c | 149 struct clk *clk; in rsnd_mix_probe() local 174 clk = devm_clk_get(dev, name); in rsnd_mix_probe() 175 if (IS_ERR(clk)) in rsnd_mix_probe() 176 return PTR_ERR(clk); in rsnd_mix_probe() 181 clk, RSND_MOD_MIX, i); in rsnd_mix_probe()
|
/sound/soc/pxa/ |
D | raumfeld.c | 44 static void set_max9485_clk(char clk) in set_max9485_clk() argument 46 i2c_master_send(max9486_client, &clk, 1); in set_max9485_clk() 91 unsigned int clk = 0; in raumfeld_cs4270_hw_params() local 97 clk = 11289600; in raumfeld_cs4270_hw_params() 101 clk = 12288000; in raumfeld_cs4270_hw_params() 105 clk = 22579200; in raumfeld_cs4270_hw_params() 109 clk = 24576000; in raumfeld_cs4270_hw_params() 115 ret = snd_soc_dai_set_sysclk(codec_dai, 0, clk, 0); in raumfeld_cs4270_hw_params() 120 ret = snd_soc_dai_set_pll(cpu_dai, 0, 0, 0, clk); in raumfeld_cs4270_hw_params() 128 ret = snd_soc_dai_set_sysclk(cpu_dai, PXA_SSP_CLK_EXT, clk, 1); in raumfeld_cs4270_hw_params() [all …]
|
D | imote2.c | 16 unsigned int clk = 0; in imote2_asoc_hw_params() local 24 clk = 12288000; in imote2_asoc_hw_params() 29 clk = 11289600; in imote2_asoc_hw_params() 33 ret = snd_soc_dai_set_sysclk(codec_dai, 0, clk, in imote2_asoc_hw_params() 39 ret = snd_soc_dai_set_sysclk(cpu_dai, PXA2XX_I2S_SYSCLK, clk, in imote2_asoc_hw_params()
|
D | z2.c | 42 unsigned int clk = 0; in z2_hw_params() local 50 clk = 12288000; in z2_hw_params() 55 clk = 11289600; in z2_hw_params() 60 ret = snd_soc_dai_set_sysclk(codec_dai, WM8750_SYSCLK, clk, in z2_hw_params()
|
D | mmp-sspa.c | 47 struct clk *audio_clk; 48 struct clk *sysclk; 109 clk_enable(priv->sspa->clk); in mmp_sspa_startup() 119 clk_disable(priv->sspa->clk); in mmp_sspa_shutdown() 165 ret = clk_set_rate(priv->sspa->clk, freq_out); in mmp_sspa_set_dai_pll() 441 priv->sspa->clk = devm_clk_get(&pdev->dev, NULL); in asoc_mmp_sspa_probe() 442 if (IS_ERR(priv->sspa->clk)) in asoc_mmp_sspa_probe() 443 return PTR_ERR(priv->sspa->clk); in asoc_mmp_sspa_probe()
|
/sound/soc/mxs/ |
D | mxs-saif.c | 128 clk_prepare_enable(master_saif->clk); in mxs_saif_set_clk() 133 ret = clk_set_rate(master_saif->clk, 512 * rate); in mxs_saif_set_clk() 136 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() 428 clk_prepare(saif->clk); in mxs_saif_hw_params() 437 clk_enable(saif->clk); in mxs_saif_hw_params() [all …]
|
/sound/soc/samsung/ |
D | s3c-i2s-v2.h | 58 struct clk *iis_pclk; 59 struct clk *iis_cclk; 73 extern struct clk *s3c_i2sv2_get_clock(struct snd_soc_dai *cpu_dai); 82 unsigned int rate, struct clk *clk);
|
D | s3c24xx_uda134x.c | 39 static struct clk *xtal; 40 static struct clk *pclk; 131 unsigned int clk = 0; in s3c24xx_uda134x_hw_params() local 163 clk = (fs_mode == S3C2410_IISMOD_384FS ? 384 : 256) * rate; in s3c24xx_uda134x_hw_params() 167 div, clk, err); in s3c24xx_uda134x_hw_params() 176 ret = snd_soc_dai_set_sysclk(cpu_dai, clk_source , clk, in s3c24xx_uda134x_hw_params() 196 ret = snd_soc_dai_set_sysclk(codec_dai, 0, clk, in s3c24xx_uda134x_hw_params()
|
D | jive_wm8750.c | 44 unsigned int clk = 0; in jive_hw_params() local 52 clk = 12288000; in jive_hw_params() 57 clk = 11289600; in jive_hw_params() 65 ret = snd_soc_dai_set_sysclk(codec_dai, WM8750_SYSCLK, clk, in jive_hw_params()
|
/sound/soc/qcom/ |
D | lpass.h | 32 struct clk *ahbix_clk; 35 struct clk *mi2s_osr_clk[LPASS_MAX_MI2S_PORTS]; 38 struct clk *mi2s_bit_clk[LPASS_MAX_MI2S_PORTS]; 59 struct clk *pcnoc_mport_clk; 60 struct clk *pcnoc_sway_clk;
|
/sound/soc/adi/ |
D | axi-spdif.c | 40 struct clk *clk; member 41 struct clk *clk_ref; 203 spdif->clk = devm_clk_get(&pdev->dev, "axi"); in axi_spdif_probe() 204 if (IS_ERR(spdif->clk)) in axi_spdif_probe() 205 return PTR_ERR(spdif->clk); in axi_spdif_probe() 211 ret = clk_prepare_enable(spdif->clk); in axi_spdif_probe() 239 clk_disable_unprepare(spdif->clk); in axi_spdif_probe() 247 clk_disable_unprepare(spdif->clk); in axi_spdif_dev_remove()
|
D | axi-i2s.c | 43 struct clk *clk; member 44 struct clk *clk_ref; 204 i2s->clk = devm_clk_get(&pdev->dev, "axi"); in axi_i2s_probe() 205 if (IS_ERR(i2s->clk)) in axi_i2s_probe() 206 return PTR_ERR(i2s->clk); in axi_i2s_probe() 212 ret = clk_prepare_enable(i2s->clk); in axi_i2s_probe() 246 clk_disable_unprepare(i2s->clk); in axi_i2s_probe() 254 clk_disable_unprepare(i2s->clk); in axi_i2s_dev_remove()
|
/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() 295 host->clk = devm_clk_get(&pdev->dev, NULL); in spdif_out_probe() 296 if (IS_ERR(host->clk)) in spdif_out_probe() 297 return PTR_ERR(host->clk); in spdif_out_probe() 324 clk_disable(host->clk); in spdif_out_suspend() 335 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() 231 host->clk = devm_clk_get(&pdev->dev, NULL); in spdif_in_probe() 232 if (IS_ERR(host->clk)) in spdif_in_probe() 233 return PTR_ERR(host->clk); in spdif_in_probe()
|
/sound/soc/tegra/ |
D | tegra_asoc_utils.h | 26 struct clk; 39 struct clk *clk_pll_a; 40 struct clk *clk_pll_a_out0; 41 struct clk *clk_cdev1;
|
/sound/soc/generic/ |
D | simple-card.c | 51 ret = clk_prepare_enable(dai_props->cpu_dai.clk); in asoc_simple_card_startup() 55 ret = clk_prepare_enable(dai_props->codec_dai.clk); in asoc_simple_card_startup() 57 clk_disable_unprepare(dai_props->cpu_dai.clk); in asoc_simple_card_startup() 69 clk_disable_unprepare(dai_props->cpu_dai.clk); in asoc_simple_card_shutdown() 71 clk_disable_unprepare(dai_props->codec_dai.clk); in asoc_simple_card_shutdown() 224 struct clk *clk; in asoc_simple_card_sub_parse_of() local 261 clk = of_clk_get(np, 0); in asoc_simple_card_sub_parse_of() 262 if (IS_ERR(clk)) { in asoc_simple_card_sub_parse_of() 263 ret = PTR_ERR(clk); in asoc_simple_card_sub_parse_of() 267 dai->sysclk = clk_get_rate(clk); in asoc_simple_card_sub_parse_of() [all …]
|
/sound/soc/codecs/ |
D | uda1380.c | 531 u16 clk = uda1380_read_reg_cache(codec, UDA1380_CLK); in uda1380_pcm_hw_params() local 534 if (clk & R00_DAC_CLK) { in uda1380_pcm_hw_params() 537 clk &= ~0x3; /* clear SEL_LOOP_DIV */ in uda1380_pcm_hw_params() 540 clk |= 0x0; in uda1380_pcm_hw_params() 543 clk |= 0x1; in uda1380_pcm_hw_params() 546 clk |= 0x2; in uda1380_pcm_hw_params() 549 clk |= 0x3; in uda1380_pcm_hw_params() 556 clk |= R00_EN_DAC | R00_EN_INT; in uda1380_pcm_hw_params() 558 clk |= R00_EN_ADC | R00_EN_DEC; in uda1380_pcm_hw_params() 560 uda1380_write(codec, UDA1380_CLK, clk); in uda1380_pcm_hw_params() [all …]
|
D | es8328.c | 67 struct clk *clk; member 458 clk_rate = clk_get_rate(es8328->clk); in es8328_hw_params() 518 clk_rate = clk_get_rate(es8328->clk); in es8328_set_dai_fmt() 613 clk_disable_unprepare(es8328->clk); in es8328_suspend() 632 ret = clk_prepare_enable(es8328->clk); in es8328_resume() 670 es8328->clk = devm_clk_get(codec->dev, NULL); in es8328_codec_probe() 671 if (IS_ERR(es8328->clk)) { in es8328_codec_probe() 673 ret = PTR_ERR(es8328->clk); in es8328_codec_probe() 677 ret = clk_prepare_enable(es8328->clk); in es8328_codec_probe() 697 if (es8328->clk) in es8328_remove() [all …]
|
D | sirf-audio-codec.c | 29 struct clk *clk; member 484 sirf_audio_codec->clk = devm_clk_get(&pdev->dev, NULL); in sirf_audio_codec_driver_probe() 485 if (IS_ERR(sirf_audio_codec->clk)) { in sirf_audio_codec_driver_probe() 487 return PTR_ERR(sirf_audio_codec->clk); in sirf_audio_codec_driver_probe() 490 ret = clk_prepare_enable(sirf_audio_codec->clk); in sirf_audio_codec_driver_probe() 517 clk_disable_unprepare(sirf_audio_codec->clk); in sirf_audio_codec_driver_probe() 525 clk_disable_unprepare(sirf_audio_codec->clk); in sirf_audio_codec_driver_remove() 540 clk_disable_unprepare(sirf_audio_codec->clk); in sirf_audio_codec_suspend() 550 ret = clk_prepare_enable(sirf_audio_codec->clk); in sirf_audio_codec_resume()
|
/sound/soc/ux500/ |
D | ux500_msp_dai.h | 62 struct clk *clk; member 63 struct clk *pclk;
|
/sound/soc/fsl/ |
D | fsl_spdif.c | 105 struct clk *txclk[SPDIF_TXRATE_MAX]; 106 struct clk *rxclk; 107 struct clk *coreclk; 108 struct clk *sysclk; 381 u8 clk, txclk_df, sysclk_df; in spdif_set_sample_rate() local 410 clk = spdif_priv->txclk_src[rate]; in spdif_set_sample_rate() 411 if (clk >= STC_TXCLK_SRC_MAX) { in spdif_set_sample_rate() 425 if (clk != STC_TXCLK_SPDIF_ROOT) in spdif_set_sample_rate() 446 stc = STC_TXCLK_ALL_EN | STC_TXCLK_SRC_SET(clk) | in spdif_set_sample_rate() 1095 struct clk *clk, u64 savesub, in fsl_spdif_txclk_caldiv() argument [all …]
|
/sound/soc/davinci/ |
D | davinci-i2s.c | 133 struct clk *clk; member 447 freq = clk_get_rate(dev->clk); in davinci_i2s_hw_params() 669 dev->clk = clk_get(&pdev->dev, NULL); in davinci_i2s_probe() 670 if (IS_ERR(dev->clk)) in davinci_i2s_probe() 672 clk_enable(dev->clk); in davinci_i2s_probe() 722 clk_disable(dev->clk); in davinci_i2s_probe() 723 clk_put(dev->clk); in davinci_i2s_probe() 733 clk_disable(dev->clk); in davinci_i2s_remove() 734 clk_put(dev->clk); in davinci_i2s_remove() 735 dev->clk = NULL; in davinci_i2s_remove()
|