Home
last modified time | relevance | path

Searched refs:sysclk (Results 1 – 25 of 122) sorted by relevance

12345

/sound/soc/ti/
Ddavinci-evm.c26 unsigned sysclk; member
61 unsigned sysclk = ((struct snd_soc_card_drvdata_davinci *) in evm_hw_params() local
62 snd_soc_card_get_drvdata(soc_card))->sysclk; in evm_hw_params()
65 ret = snd_soc_dai_set_sysclk(codec_dai, 0, sysclk, SND_SOC_CLOCK_OUT); in evm_hw_params()
70 ret = snd_soc_dai_set_sysclk(cpu_dai, 0, sysclk, SND_SOC_CLOCK_OUT); in evm_hw_params()
273 .sysclk = 12288000,
287 .sysclk = 27000000,
300 .sysclk = 27000000,
313 .sysclk = 27000000,
325 .sysclk = 24576000,
[all …]
Domap-dmic.c42 int sysclk; member
297 if (dmic->sysclk == clk_id) { in omap_dmic_select_fclk()
352 dmic->sysclk = clk_id; in omap_dmic_select_fclk()
470 dmic->sysclk = OMAP_DMIC_SYSCLK_SYNC_MUX_CLKS; in asoc_dmic_probe()
/sound/soc/pxa/
Dbrownstone.c49 int freq_out, sspa_mclk, sysclk; in brownstone_wm8994_hw_params() local
53 sysclk = params_rate(params) * 256; in brownstone_wm8994_hw_params()
57 sysclk = params_rate(params) * 512; in brownstone_wm8994_hw_params()
62 snd_soc_dai_set_pll(cpu_dai, MMP_SYSCLK, 0, freq_out, sysclk); in brownstone_wm8994_hw_params()
66 snd_soc_dai_set_sysclk(codec_dai, WM8994_SYSCLK_MCLK1, sysclk, 0); in brownstone_wm8994_hw_params()
Dmmp-sspa.c34 struct clk *sysclk; member
94 clk_enable(priv->sysclk); in mmp_sspa_startup()
106 clk_disable(priv->sysclk); in mmp_sspa_shutdown()
145 ret = clk_set_rate(priv->sysclk, freq_out); in mmp_sspa_set_dai_pll()
431 priv->sysclk = clk_get(NULL, "mmp-sysclk"); in asoc_mmp_sspa_probe()
432 if (IS_ERR(priv->sysclk)) { in asoc_mmp_sspa_probe()
434 return PTR_ERR(priv->sysclk); in asoc_mmp_sspa_probe()
450 clk_put(priv->sysclk); in asoc_mmp_sspa_remove()
Dpxa-ssp.c42 unsigned int sysclk; member
237 priv->sysclk = 1843200; in pxa_ssp_set_dai_sysclk()
239 priv->sysclk = 13000000; in pxa_ssp_set_dai_sysclk()
242 priv->sysclk = freq; in pxa_ssp_set_dai_sysclk()
246 priv->sysclk = freq; in pxa_ssp_set_dai_sysclk()
250 priv->sysclk = 0; in pxa_ssp_set_dai_sysclk()
651 if (((priv->sysclk / bclk) == 64) && (width == 16)) { in pxa_ssp_hw_params()
/sound/soc/meson/
Daxg-pdm.c95 struct clk *sysclk; member
176 return clk_set_rate(priv->sysclk, sys_rate); in axg_pdm_set_sysclk()
178 return clk_set_rate(priv->sysclk, priv->cfg->sys_rate); in axg_pdm_set_sysclk()
187 spmax = DIV_ROUND_UP_ULL((u64)clk_get_rate(priv->sysclk), in axg_pdm_set_sample_pointer()
396 ret = clk_set_rate(priv->sysclk, priv->cfg->sys_rate); in axg_pdm_dai_probe()
402 ret = clk_prepare_enable(priv->sysclk); in axg_pdm_dai_probe()
427 clk_disable_unprepare(priv->sysclk); in axg_pdm_dai_probe()
437 clk_disable_unprepare(priv->sysclk); in axg_pdm_dai_remove()
629 priv->sysclk = devm_clk_get(dev, "sysclk"); in axg_pdm_probe()
630 if (IS_ERR(priv->sysclk)) { in axg_pdm_probe()
[all …]
/sound/soc/atmel/
Dmchp-i2s-mcc.c238 unsigned int sysclk; member
303 dev->sysclk = freq; in mchp_i2s_mcc_set_sysclk()
401 unsigned int sysclk; in mchp_i2s_mcc_config_divs() local
406 if (!dev->sysclk) in mchp_i2s_mcc_config_divs()
407 sysclk = bclk; in mchp_i2s_mcc_config_divs()
409 sysclk = dev->sysclk; in mchp_i2s_mcc_config_divs()
416 lcm_rate = lcm(sysclk, bclk); in mchp_i2s_mcc_config_divs()
417 if ((lcm_rate / sysclk % 2 == 1 && lcm_rate / sysclk > 2) || in mchp_i2s_mcc_config_divs()
422 (clk_rate == sysclk || clk_rate / (sysclk * 2) <= GENMASK(5, 0)) && in mchp_i2s_mcc_config_divs()
465 if (dev->sysclk) in mchp_i2s_mcc_config_divs()
[all …]
/sound/soc/codecs/
Dmax9860.c260 u8 sysclk = 0; in max9860_hw_params() local
369 sysclk = MAX9860_FREQ_12MHZ; in max9860_hw_params()
372 sysclk = MAX9860_FREQ_13MHZ; in max9860_hw_params()
375 sysclk = MAX9860_FREQ_19_2MHZ; in max9860_hw_params()
386 if (sysclk && params_rate(params) == 16000) in max9860_hw_params()
387 sysclk |= MAX9860_16KHZ; in max9860_hw_params()
401 if (!sysclk) { in max9860_hw_params()
404 sysclk |= MAX9860_16KHZ; in max9860_hw_params()
410 sysclk |= max9860->psclk; in max9860_hw_params()
411 dev_dbg(component->dev, "SYSCLK %02x\n", sysclk); in max9860_hw_params()
[all …]
Dda7210.c761 u32 fs, sysclk; in da7210_hw_params() local
794 sysclk = 3072000; in da7210_hw_params()
798 sysclk = 2822400; in da7210_hw_params()
802 sysclk = 3072000; in da7210_hw_params()
806 sysclk = 3072000; in da7210_hw_params()
810 sysclk = 2822400; in da7210_hw_params()
814 sysclk = 3072000; in da7210_hw_params()
818 sysclk = 2822400; in da7210_hw_params()
822 sysclk = 3072000; in da7210_hw_params()
826 sysclk = 2822400; in da7210_hw_params()
[all …]
Dda9055.c1054 u32 sysclk; in da9055_hw_params() local
1080 sysclk = 3072000; in da9055_hw_params()
1084 sysclk = 2822400; in da9055_hw_params()
1088 sysclk = 3072000; in da9055_hw_params()
1092 sysclk = 3072000; in da9055_hw_params()
1096 sysclk = 2822400; in da9055_hw_params()
1100 sysclk = 3072000; in da9055_hw_params()
1104 sysclk = 2822400; in da9055_hw_params()
1108 sysclk = 3072000; in da9055_hw_params()
1112 sysclk = 2822400; in da9055_hw_params()
[all …]
Dwm8978.c103 enum wm8978_sysclk_src sysclk; member
626 wm8978->sysclk = clk_id; in wm8978_set_dai_sysclk()
629 if (wm8978->sysclk == WM8978_PLL && (!freq || clk_id == WM8978_MCLK)) { in wm8978_set_dai_sysclk()
638 wm8978->sysclk = WM8978_MCLK; in wm8978_set_dai_sysclk()
775 if (wm8978->sysclk == WM8978_MCLK) { in wm8978_hw_params()
814 wm8978->sysclk == WM8978_MCLK ? in wm8978_hw_params()
826 if (wm8978->sysclk != current_clk_id) { in wm8978_hw_params()
827 if (wm8978->sysclk == WM8978_PLL) in wm8978_hw_params()
980 wm8978->sysclk = WM8978_PLL; in wm8978_probe()
Dwm8988.c115 unsigned int sysclk; member
564 wm8988->sysclk = freq; in wm8988_set_dai_sysclk()
572 wm8988->sysclk = freq; in wm8988_set_dai_sysclk()
578 wm8988->sysclk = freq; in wm8988_set_dai_sysclk()
651 if (!wm8988->sysclk) { in wm8988_pcm_startup()
674 coeff = get_coeff(wm8988->sysclk, params_rate(params)); in wm8988_pcm_hw_params()
676 coeff = get_coeff(wm8988->sysclk / 2, params_rate(params)); in wm8988_pcm_hw_params()
682 params_rate(params), wm8988->sysclk); in wm8988_pcm_hw_params()
Dmax9850.c27 unsigned int sysclk; member
120 if (!max9850->sysclk) in max9850_hw_params()
128 do_div(lrclk_div, max9850->sysclk); in max9850_hw_params()
167 max9850->sysclk = freq; in max9850_set_dai_sysclk()
Dwm8776.c39 int sysclk[2]; member
287 if (wm8776->sysclk[dai->driver->id] / params_rate(params) in wm8776_hw_params()
295 wm8776->sysclk[dai->driver->id], params_rate(params)); in wm8776_hw_params()
325 if (WARN_ON(dai->driver->id >= ARRAY_SIZE(wm8776->sysclk))) in wm8776_set_sysclk()
328 wm8776->sysclk[dai->driver->id] = freq; in wm8776_set_sysclk()
Dwm8960.c131 int sysclk; member
630 int sysclk, bclk, lrclk; in wm8960_configure_sysclk() local
644 sysclk = mclk / sysclk_divs[i]; in wm8960_configure_sysclk()
646 if (sysclk != dac_divs[j] * lrclk) in wm8960_configure_sysclk()
649 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_sysclk()
699 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local
714 sysclk = lrclk * dac_divs[j]; in wm8960_configure_pll()
715 freq_out = sysclk * sysclk_divs[i]; in wm8960_configure_pll()
721 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_pll()
771 } else if (wm8960->sysclk) { in wm8960_configure_clocking()
[all …]
Dcs42xx8.c47 unsigned long sysclk; member
209 cs42xx8->sysclk = freq; in cs42xx8_set_dai_sysclk()
279 ratio[tx] = rate[tx] > 0 ? cs42xx8->sysclk / rate[tx] : 0; in cs42xx8_hw_params()
280 ratio[!tx] = rate[!tx] > 0 ? cs42xx8->sysclk / rate[!tx] : 0; in cs42xx8_hw_params()
308 cs42xx8->sysclk >= cs42xx8_ratios[i].min_mclk && in cs42xx8_hw_params()
309 cs42xx8->sysclk <= cs42xx8_ratios[i].max_mclk; in cs42xx8_hw_params()
564 cs42xx8->sysclk = clk_get_rate(cs42xx8->clk); in cs42xx8_probe()
Dwm8523.c41 unsigned int sysclk; member
130 if (!wm8523->sysclk) { in wm8523_startup()
155 if (wm8523->sysclk / params_rate(params) == in wm8523_hw_params()
163 wm8523->sysclk / params_rate(params)); in wm8523_hw_params()
216 wm8523->sysclk = freq; in wm8523_set_dai_sysclk()
Dwm8524.c29 unsigned int sysclk; member
68 if (!wm8524->sysclk) { in wm8524_startup()
100 wm8524->sysclk = freq; in wm8524_set_dai_sysclk()
Dda732x.c36 unsigned int sysclk; member
168 static inline int da732x_get_input_div(struct snd_soc_component *component, int sysclk) in da732x_get_input_div() argument
173 if (sysclk < DA732X_MCLK_10MHZ) { in da732x_get_input_div()
176 } else if ((sysclk >= DA732X_MCLK_10MHZ) && in da732x_get_input_div()
177 (sysclk < DA732X_MCLK_20MHZ)) { in da732x_get_input_div()
180 } else if ((sysclk >= DA732X_MCLK_20MHZ) && in da732x_get_input_div()
181 (sysclk < DA732X_MCLK_40MHZ)) { in da732x_get_input_div()
184 } else if ((sysclk >= DA732X_MCLK_40MHZ) && in da732x_get_input_div()
185 (sysclk <= DA732X_MCLK_54MHZ)) { in da732x_get_input_div()
1140 switch (da732x->sysclk) { in da732x_set_dai_pll()
[all …]
Dpcm186x.c39 unsigned int sysclk; member
345 div_bck = priv->sysclk / (div_lrck * rate); in pcm186x_hw_params()
349 __func__, priv->sysclk, div_bck, div_lrck); in pcm186x_hw_params()
370 if (!priv->sysclk) { in pcm186x_set_fmt()
473 priv->sysclk = freq; in pcm186x_set_dai_sysclk()
Duda1334.c26 unsigned int sysclk; member
100 if (!uda1334->sysclk) { in uda1334_startup()
132 uda1334->sysclk = freq; in uda1334_set_dai_sysclk()
Dwm8741.c41 unsigned int sysclk; member
181 if (wm8741->sysclk) in wm8741_startup()
201 if (!wm8741->sysclk) { in wm8741_hw_params()
215 params_rate(params), wm8741->sysclk); in wm8741_hw_params()
299 wm8741->sysclk = freq; in wm8741_set_dai_sysclk()
Dad193x.c26 int sysclk; member
108 return !!ad193x->sysclk; in ad193x_check_pll()
306 ad193x->sysclk = freq; in ad193x_set_dai_sysclk()
334 switch (ad193x->sysclk) { in ad193x_hw_params()
Duda134x.c32 int sysclk; member
192 uda134x->sysclk, params_rate(params)); in uda134x_hw_params()
195 switch (uda134x->sysclk / params_rate(params)) { in uda134x_hw_params()
259 uda134x->sysclk = freq; in uda134x_set_dai_sysclk()
/sound/soc/fsl/
Dwm1133-ev1.c32 unsigned int sysclk; member
99 snd_soc_dai_set_pll(codec_dai, 0, 0, 14750000, wm8350_audio[i].sysclk); in wm1133_ev1_hw_params()
115 wm8350_audio[i].sysclk, SND_SOC_CLOCK_IN); in wm1133_ev1_hw_params()

12345