Home
last modified time | relevance | path

Searched full:freq_out (Results 1 – 25 of 32) sorted by relevance

12

/linux/sound/soc/codecs/
H A Dadau-utils.c15 int adau_calc_pll_cfg(unsigned int freq_in, unsigned int freq_out, in adau_calc_pll_cfg() argument
21 if (!freq_out) { in adau_calc_pll_cfg()
27 if (freq_out % freq_in != 0) { in adau_calc_pll_cfg()
30 r = freq_out / freq_in; in adau_calc_pll_cfg()
31 i = freq_out % freq_in; in adau_calc_pll_cfg()
37 r = freq_out / freq_in; in adau_calc_pll_cfg()
H A Drl6231.c133 * @freq_out: target clock which codec works on.
141 const unsigned int freq_out, struct rl6231_pll_code *pll_code) in rl6231_pll_calc() argument
147 unsigned int red_t = abs(freq_out - freq_in); in rl6231_pll_calc()
156 freq_out == pll_preset_table[i].pll_out) { in rl6231_pll_calc()
167 min_k = 80000000 / freq_out - 2; in rl6231_pll_calc()
168 max_k = 150000000 / freq_out - 2; in rl6231_pll_calc()
173 div_t = gcd(freq_in, freq_out); in rl6231_pll_calc()
177 f_out = freq_out / div; in rl6231_pll_calc()
H A Dadav80x.c623 int source, unsigned int freq_in, unsigned int freq_out) in adav80x_set_pll() argument
640 if (!freq_out) in adav80x_set_pll()
656 if (freq_out > 12288000) { in adav80x_set_pll()
658 freq_out /= 2; in adav80x_set_pll()
661 /* freq_out = sample_rate * 256 */ in adav80x_set_pll()
662 switch (freq_out) { in adav80x_set_pll()
H A Dadau-utils.h5 int adau_calc_pll_cfg(unsigned int freq_in, unsigned int freq_out,
H A Drl6231.h29 const unsigned int freq_out, struct rl6231_pll_code *pll_code);
H A Drt5514.c897 unsigned int freq_in, unsigned int freq_out) in rt5514_set_dai_pll() argument
904 if (!freq_in || !freq_out) { in rt5514_set_dai_pll()
917 freq_out == rt5514->pll_out) in rt5514_set_dai_pll()
936 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt5514_set_dai_pll()
954 rt5514->pll_out = freq_out; in rt5514_set_dai_pll()
H A Drt5682s.c2298 if (plla_table[i].freq_in == f_in && plla_table[i].freq_out == f_out) { in find_pll_inter_combination()
2306 if (pllb_table[i].freq_in == f_in && pllb_table[i].freq_out == f_out) { in find_pll_inter_combination()
2314 if (plla_table[i].freq_in == f_in && plla_table[i].freq_out == 3840000) { in find_pll_inter_combination()
2317 pllb_table[j].freq_out == f_out) { in find_pll_inter_combination()
2331 unsigned int freq_out) in rt5682s_set_component_pll() argument
2337 freq_out == rt5682s->pll_out[pll_id]) in rt5682s_set_component_pll()
2340 if (!freq_in || !freq_out) { in rt5682s_set_component_pll()
2363 rt5682s->pll_comb = find_pll_inter_combination(freq_in, freq_out, in rt5682s_set_component_pll()
2371 pll_id + 1, freq_in, freq_out, rt5682s->pll_comb); in rt5682s_set_component_pll()
2375 pll_id + 1, freq_in, freq_out, rt5682s->pll_comb); in rt5682s_set_component_pll()
[all …]
H A Drt5660.c1008 unsigned int freq_in, unsigned int freq_out) in rt5660_set_dai_pll() argument
1016 freq_out == rt5660->pll_out) in rt5660_set_dai_pll()
1019 if (!freq_in || !freq_out) { in rt5660_set_dai_pll()
1045 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt5660_set_dai_pll()
1062 rt5660->pll_out = freq_out; in rt5660_set_dai_pll()
H A Dnau8822.h211 int freq_out; member
H A Drt5682.c2355 unsigned int freq_out) in rt5682_set_component_pll() argument
2364 freq_out == rt5682->pll_out[pll_id]) in rt5682_set_component_pll()
2367 if (!freq_in || !freq_out) { in rt5682_set_component_pll()
2407 ret = rl6231_pll_calc(pll2_fout1, freq_out, &pll2b_code); in rt5682_set_component_pll()
2414 pll2_fout1, freq_out, in rt5682_set_component_pll()
2429 if (freq_out == 22579200) in rt5682_set_component_pll()
2458 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt5682_set_component_pll()
2477 rt5682->pll_out[pll_id] = freq_out; in rt5682_set_component_pll()
H A Drt5668.c2097 unsigned int freq_out) in rt5668_set_component_pll() argument
2104 freq_out == rt5668->pll_out) in rt5668_set_component_pll()
2107 if (!freq_in || !freq_out) { in rt5668_set_component_pll()
2131 ret = rl6231_pll_calc(freq_in, freq_out, &pll_code); in rt5668_set_component_pll()
2148 rt5668->pll_out = freq_out; in rt5668_set_component_pll()
H A Dtscs42xx.c191 int freq_out; in power_up_audio_plls() local
196 freq_out = sample_rate_to_pll_freq_out(tscs42xx->samplerate); in power_up_audio_plls()
197 switch (freq_out) { in power_up_audio_plls()
/linux/sound/soc/intel/avs/boards/
H A Drt5682.c150 int pll_source, freq_in, freq_out; in avs_rt5682_hw_params() local
164 freq_out = params_rate(params) * 512; in avs_rt5682_hw_params()
166 ret = snd_soc_dai_set_pll(codec_dai, RT5682_PLL1, pll_source, freq_in, freq_out); in avs_rt5682_hw_params()
170 ret = snd_soc_dai_set_sysclk(codec_dai, RT5682_SCLK_S_PLL1, freq_out, SND_SOC_CLOCK_IN); in avs_rt5682_hw_params()
/linux/sound/soc/pxa/
H A Dmmp-sspa.c135 unsigned int freq_out) in mmp_sspa_set_dai_pll() argument
146 ret = clk_set_rate(sspa->sysclk, freq_out); in mmp_sspa_set_dai_pll()
151 ret = clk_set_rate(sspa->clk, freq_out); in mmp_sspa_set_dai_pll()
/linux/sound/soc/
H A Dsoc-dai.c83 * @freq_out: requested PLL output clock frequency in Hz
88 unsigned int freq_in, unsigned int freq_out) in snd_soc_dai_set_pll() argument
95 freq_in, freq_out); in snd_soc_dai_set_pll()
98 freq_in, freq_out); in snd_soc_dai_set_pll()
H A Dsoc-component.c98 * @freq_out: requested PLL output clock frequency in Hz
104 unsigned int freq_out) in snd_soc_component_set_pll() argument
110 freq_in, freq_out); in snd_soc_component_set_pll()
/linux/Documentation/devicetree/bindings/sound/
H A Dnvidia,tegra186-asrc.yaml12 wide range of sample rate ratios (freq_in/freq_out) from 1:24 to 24:1.
/linux/arch/arm/mach-omap2/
H A Dsram242x.S173 bne freq_out @ leave if SDR, no DLL function
184 freq_out: label
H A Dsram243x.S173 bne freq_out @ leave if SDR, no DLL function
184 freq_out: label
/linux/drivers/rtc/
H A Drtc-amlogic-a4.c297 * Set RTC oscillator to freq_out to freq_in/((N0*M0+N1*M1)/(M0+M1)) in aml_rtc_init()
309 /* Set M0 to 2, M1 to 3, so freq_out = 32768 Hz*/ in aml_rtc_init()
/linux/sound/soc/generic/
H A Dtest-component.c50 unsigned int freq_in, unsigned int freq_out) in test_dai_set_pll() argument
305 int source, unsigned int freq_in, unsigned int freq_out) in test_component_set_pll() argument
/linux/include/sound/
H A Dsoc-component.h98 int source, unsigned int freq_in, unsigned int freq_out);
393 unsigned int freq_out);
H A Dsoc-dai.h172 int pll_id, int source, unsigned int freq_in, unsigned int freq_out);
286 unsigned int freq_in, unsigned int freq_out);
/linux/include/linux/mfd/
H A Dtwl6040.h216 unsigned int freq_in, unsigned int freq_out);
/linux/sound/soc/tegra/
H A DKconfig106 sample rate ratios (freq_in/freq_out) from 1:24 to 24:1.

12