Home
last modified time | relevance | path

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

12345

/sound/soc/davinci/
Ddavinci-evm.c29 unsigned sysclk; member
64 unsigned sysclk = ((struct snd_soc_card_drvdata_davinci *) in evm_hw_params() local
65 snd_soc_card_get_drvdata(soc_card))->sysclk; in evm_hw_params()
68 ret = snd_soc_dai_set_sysclk(codec_dai, 0, sysclk, SND_SOC_CLOCK_OUT); in evm_hw_params()
73 ret = snd_soc_dai_set_sysclk(cpu_dai, 0, sysclk, SND_SOC_CLOCK_OUT); in evm_hw_params()
252 .sysclk = 12288000,
266 .sysclk = 27000000,
279 .sysclk = 27000000,
292 .sysclk = 27000000,
304 .sysclk = 24576000,
[all …]
/sound/soc/pxa/
Dbrownstone.c54 int freq_out, sspa_mclk, sysclk; in brownstone_wm8994_hw_params() local
58 sysclk = params_rate(params) * 256; in brownstone_wm8994_hw_params()
62 sysclk = params_rate(params) * 512; in brownstone_wm8994_hw_params()
67 snd_soc_dai_set_pll(cpu_dai, MMP_SYSCLK, 0, freq_out, sysclk); in brownstone_wm8994_hw_params()
71 snd_soc_dai_set_sysclk(codec_dai, WM8994_SYSCLK_MCLK1, sysclk, 0); in brownstone_wm8994_hw_params()
Dmmp-sspa.c48 struct clk *sysclk; member
108 clk_enable(priv->sysclk); in mmp_sspa_startup()
120 clk_disable(priv->sysclk); in mmp_sspa_shutdown()
159 ret = clk_set_rate(priv->sysclk, freq_out); in mmp_sspa_set_dai_pll()
448 priv->sysclk = clk_get(NULL, "mmp-sysclk"); in asoc_mmp_sspa_probe()
449 if (IS_ERR(priv->sysclk)) { in asoc_mmp_sspa_probe()
451 return PTR_ERR(priv->sysclk); in asoc_mmp_sspa_probe()
467 clk_put(priv->sysclk); in asoc_mmp_sspa_remove()
Dpxa-ssp.c45 unsigned int sysclk; member
235 priv->sysclk = 1843200; in pxa_ssp_set_dai_sysclk()
237 priv->sysclk = 13000000; in pxa_ssp_set_dai_sysclk()
240 priv->sysclk = freq; in pxa_ssp_set_dai_sysclk()
244 priv->sysclk = freq; in pxa_ssp_set_dai_sysclk()
248 priv->sysclk = 0; in pxa_ssp_set_dai_sysclk()
/sound/soc/codecs/
Dmax9860.c269 u8 sysclk = 0; in max9860_hw_params() local
378 sysclk = MAX9860_FREQ_12MHZ; in max9860_hw_params()
381 sysclk = MAX9860_FREQ_13MHZ; in max9860_hw_params()
384 sysclk = MAX9860_FREQ_19_2MHZ; in max9860_hw_params()
395 if (sysclk && params_rate(params) == 16000) in max9860_hw_params()
396 sysclk |= MAX9860_16KHZ; in max9860_hw_params()
410 if (!sysclk) { in max9860_hw_params()
413 sysclk |= MAX9860_16KHZ; in max9860_hw_params()
419 sysclk |= max9860->psclk; in max9860_hw_params()
420 dev_dbg(codec->dev, "SYSCLK %02x\n", sysclk); in max9860_hw_params()
[all …]
Dda7210.c766 u32 fs, sysclk; in da7210_hw_params() local
799 sysclk = 3072000; in da7210_hw_params()
803 sysclk = 2822400; in da7210_hw_params()
807 sysclk = 3072000; in da7210_hw_params()
811 sysclk = 3072000; in da7210_hw_params()
815 sysclk = 2822400; in da7210_hw_params()
819 sysclk = 3072000; in da7210_hw_params()
823 sysclk = 2822400; in da7210_hw_params()
827 sysclk = 3072000; in da7210_hw_params()
831 sysclk = 2822400; in da7210_hw_params()
[all …]
Dda9055.c1058 u32 sysclk; in da9055_hw_params() local
1084 sysclk = 3072000; in da9055_hw_params()
1088 sysclk = 2822400; in da9055_hw_params()
1092 sysclk = 3072000; in da9055_hw_params()
1096 sysclk = 3072000; in da9055_hw_params()
1100 sysclk = 2822400; in da9055_hw_params()
1104 sysclk = 3072000; in da9055_hw_params()
1108 sysclk = 2822400; in da9055_hw_params()
1112 sysclk = 3072000; in da9055_hw_params()
1116 sysclk = 2822400; in da9055_hw_params()
[all …]
Dwm8978.c106 enum wm8978_sysclk_src sysclk; member
629 wm8978->sysclk = clk_id; in wm8978_set_dai_sysclk()
632 if (wm8978->sysclk == WM8978_PLL && (!freq || clk_id == WM8978_MCLK)) { in wm8978_set_dai_sysclk()
641 wm8978->sysclk = WM8978_MCLK; in wm8978_set_dai_sysclk()
778 if (wm8978->sysclk == WM8978_MCLK) { in wm8978_hw_params()
817 wm8978->sysclk == WM8978_MCLK ? in wm8978_hw_params()
829 if (wm8978->sysclk != current_clk_id) { in wm8978_hw_params()
830 if (wm8978->sysclk == WM8978_PLL) in wm8978_hw_params()
983 wm8978->sysclk = WM8978_PLL; in wm8978_probe()
Dwm8988.c118 unsigned int sysclk; member
567 wm8988->sysclk = freq; in wm8988_set_dai_sysclk()
575 wm8988->sysclk = freq; in wm8988_set_dai_sysclk()
581 wm8988->sysclk = freq; in wm8988_set_dai_sysclk()
654 if (!wm8988->sysclk) { in wm8988_pcm_startup()
677 coeff = get_coeff(wm8988->sysclk, params_rate(params)); in wm8988_pcm_hw_params()
679 coeff = get_coeff(wm8988->sysclk / 2, params_rate(params)); in wm8988_pcm_hw_params()
685 params_rate(params), wm8988->sysclk); in wm8988_pcm_hw_params()
Dmax9850.c32 unsigned int sysclk; member
138 if (!max9850->sysclk) in max9850_hw_params()
146 do_div(lrclk_div, max9850->sysclk); in max9850_hw_params()
185 max9850->sysclk = freq; in max9850_set_dai_sysclk()
Dwm8960.c134 int sysclk; member
633 int sysclk, bclk, lrclk; in wm8960_configure_sysclk() local
647 sysclk = mclk / sysclk_divs[i]; in wm8960_configure_sysclk()
649 if (sysclk != dac_divs[j] * lrclk) in wm8960_configure_sysclk()
652 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_sysclk()
702 int sysclk, bclk, lrclk, freq_out; in wm8960_configure_pll() local
717 sysclk = lrclk * dac_divs[j]; in wm8960_configure_pll()
718 freq_out = sysclk * sysclk_divs[i]; in wm8960_configure_pll()
724 diff = sysclk - bclk * bclk_divs[k] / 10; in wm8960_configure_pll()
774 } else if (wm8960->sysclk) { in wm8960_configure_clocking()
[all …]
Dwm8776.c42 int sysclk[2]; member
290 if (wm8776->sysclk[dai->driver->id] / params_rate(params) in wm8776_hw_params()
298 wm8776->sysclk[dai->driver->id], params_rate(params)); in wm8776_hw_params()
328 if (WARN_ON(dai->driver->id >= ARRAY_SIZE(wm8776->sysclk))) in wm8776_set_sysclk()
331 wm8776->sysclk[dai->driver->id] = freq; in wm8776_set_sysclk()
Dwm8523.c45 unsigned int sysclk; member
134 if (!wm8523->sysclk) { in wm8523_startup()
159 if (wm8523->sysclk / params_rate(params) == in wm8523_hw_params()
167 wm8523->sysclk / params_rate(params)); in wm8523_hw_params()
220 wm8523->sysclk = freq; in wm8523_set_dai_sysclk()
Dwm8524.c32 unsigned int sysclk; member
71 if (!wm8524->sysclk) { in wm8524_startup()
103 wm8524->sysclk = freq; in wm8524_set_dai_sysclk()
Dda732x.c39 unsigned int sysclk; member
171 static inline int da732x_get_input_div(struct snd_soc_codec *codec, int sysclk) in da732x_get_input_div() argument
176 if (sysclk < DA732X_MCLK_10MHZ) { in da732x_get_input_div()
179 } else if ((sysclk >= DA732X_MCLK_10MHZ) && in da732x_get_input_div()
180 (sysclk < DA732X_MCLK_20MHZ)) { in da732x_get_input_div()
183 } else if ((sysclk >= DA732X_MCLK_20MHZ) && in da732x_get_input_div()
184 (sysclk < DA732X_MCLK_40MHZ)) { in da732x_get_input_div()
187 } else if ((sysclk >= DA732X_MCLK_40MHZ) && in da732x_get_input_div()
188 (sysclk <= DA732X_MCLK_54MHZ)) { in da732x_get_input_div()
1143 switch (da732x->sysclk) { in da732x_set_dai_pll()
[all …]
Dwm8741.c45 unsigned int sysclk; member
185 if (wm8741->sysclk) in wm8741_startup()
205 if (!wm8741->sysclk) { in wm8741_hw_params()
219 params_rate(params), wm8741->sysclk); in wm8741_hw_params()
290 wm8741->sysclk = freq; in wm8741_set_dai_sysclk()
Des8316.c36 unsigned int sysclk; member
367 es8316->sysclk = freq; in es8316_set_dai_sysclk()
445 if (es8316->sysclk == 0) { in es8316_pcm_startup()
469 if (!es8316->sysclk) { in es8316_pcm_hw_params()
Duda134x.c35 int sysclk; member
195 uda134x->sysclk, params_rate(params)); in uda134x_hw_params()
198 switch (uda134x->sysclk / params_rate(params)) { in uda134x_hw_params()
262 uda134x->sysclk = freq; in uda134x_set_dai_sysclk()
Dcs4265.c38 u32 sysclk; member
335 cs4265->sysclk = freq; in cs4265_set_sysclk()
339 cs4265->sysclk = 0; in cs4265_set_sysclk()
419 index = cs4265_get_clk_index(cs4265->sysclk, params_rate(params)); in cs4265_pcm_hw_params()
Dpcm3168a.c54 unsigned long sysclk; member
282 msleep(DIV_ROUND_UP(3846 * 1000, pcm3168a->sysclk)); in pcm3168a_reset()
311 pcm3168a->sysclk = freq; in pcm3168a_set_dai_sysclk()
408 ratio = pcm3168a->sysclk / rate; in pcm3168a_hw_params()
635 pcm3168a->sysclk = clk_get_rate(pcm3168a->scki); in pcm3168a_probe()
Dwm8961.c110 int sysclk; member
515 if (!wm8961->sysclk) { in wm8961_hw_params()
535 target = wm8961->sysclk / fs; in wm8961_hw_params()
557 wm8961_clk_sys_ratio[i].ratio, wm8961->sysclk, fs, in wm8961_hw_params()
558 wm8961->sysclk / fs); in wm8961_hw_params()
619 wm8961->sysclk = freq; in wm8961_set_sysclk()
Dak4535.c34 unsigned int sysclk; member
257 ak4535->sysclk = freq; in ak4535_set_dai_sysclk()
271 fs = ak4535->sysclk / rate; in ak4535_hw_params()
/sound/soc/generic/
Dsimple-card-utils.c188 simple_dai->sysclk = clk_get_rate(clk); in asoc_simple_card_parse_clk()
192 simple_dai->sysclk = val; in asoc_simple_card_parse_clk()
196 simple_dai->sysclk = clk_get_rate(clk); in asoc_simple_card_parse_clk()
203 simple_dai->sysclk, simple_dai->clk_direction); in asoc_simple_card_parse_clk()
314 if (simple_dai->sysclk) { in asoc_simple_card_init_dai()
315 ret = snd_soc_dai_set_sysclk(dai, 0, simple_dai->sysclk, in asoc_simple_card_init_dai()
/sound/soc/fsl/
Dwm1133-ev1.c37 unsigned int sysclk; member
104 snd_soc_dai_set_pll(codec_dai, 0, 0, 14750000, wm8350_audio[i].sysclk); in wm1133_ev1_hw_params()
120 wm8350_audio[i].sysclk, SND_SOC_CLOCK_IN); in wm1133_ev1_hw_params()
/sound/soc/omap/
Domap-dmic.c56 int sysclk; member
309 if (dmic->sysclk == clk_id) { in omap_dmic_select_fclk()
357 dmic->sysclk = clk_id; in omap_dmic_select_fclk()
474 dmic->sysclk = OMAP_DMIC_SYSCLK_SYNC_MUX_CLKS; in asoc_dmic_probe()

12345