Home
last modified time | relevance | path

Searched refs:ratio (Results 1 – 25 of 29) sorted by relevance

12

/sound/pci/ice1712/
Dmaya44.c620 unsigned int ratio, adc_ratio, val; in set_rate() local
625 ratio = WM8776_CLOCK_RATIO_128FS; in set_rate()
628 ratio = WM8776_CLOCK_RATIO_128FS; in set_rate()
631 ratio = WM8776_CLOCK_RATIO_256FS; in set_rate()
634 ratio = WM8776_CLOCK_RATIO_384FS; in set_rate()
637 ratio = WM8776_CLOCK_RATIO_512FS; in set_rate()
640 ratio = WM8776_CLOCK_RATIO_512FS; in set_rate()
643 ratio = WM8776_CLOCK_RATIO_768FS; in set_rate()
659 adc_ratio = ratio; in set_rate()
666 val |= ratio << 4; in set_rate()
Daureon.c1225 unsigned char ratio; in aureon_cs8415_rate_get() local
1226 ratio = aureon_cs8415_get(ice, CS8415_RATIO); in aureon_cs8415_rate_get()
1227 ucontrol->value.integer.value[0] = (int)((unsigned int)ratio * 750); in aureon_cs8415_rate_get()
/sound/soc/samsung/
Dsmdk_spdif.c112 int ret, ratio; in smdk_hw_params() local
130 ratio = 512; in smdk_hw_params()
131 rclk_rate = params_rate(params) * ratio; in smdk_hw_params()
Dspdif.c190 int i, ratio; in spdif_hw_params() local
224 ratio = spdif->clk_rate / params_rate(params); in spdif_hw_params()
226 if (ratio == spdif_sysclk_ratios[i]) in spdif_hw_params()
235 switch (ratio) { in spdif_hw_params()
/sound/soc/codecs/
Dcs4270.c175 unsigned int ratio; member
318 unsigned int ratio; in cs4270_hw_params() local
324 ratio = cs4270->mclk / rate; /* MCLK/LRCK ratio */ in cs4270_hw_params()
327 if (cs4270_mode_ratios[i].ratio == ratio) in cs4270_hw_params()
Dcs42l51.c315 unsigned int ratio; member
364 unsigned int ratio; in cs42l51_hw_params() local
384 ratio = cs42l51->mclk / rate; /* MCLK/LRCK ratio */ in cs42l51_hw_params()
386 if (ratios[i].ratio == ratio) in cs42l51_hw_params()
Dwm9081.c90 int ratio; member
463 int ratio; member
518 target /= fll_fratios[i].ratio; in fll_factors()
679 target = wm9081->fs * clk_sys_rates[i].ratio; in configure_clock()
691 new_sysclk = clk_sys_rates[i].ratio in configure_clock()
1066 best_val = abs((wm9081->sysclk_rate / clk_sys_rates[0].ratio) in wm9081_hw_params()
1070 clk_sys_rates[i].ratio) - wm9081->fs); in wm9081_hw_params()
1077 clk_sys_rates[best].ratio); in wm9081_hw_params()
Darizona.c1226 int ratio; member
1261 int i, ratio; in arizona_calc_fll() local
1302 ratio = fll_fratios[i].ratio; in arizona_calc_fll()
1324 cfg->n = target / (ratio * Fref); in arizona_calc_fll()
1326 if (target % (ratio * Fref)) { in arizona_calc_fll()
1327 gcd_fll = gcd(target, ratio * Fref); in arizona_calc_fll()
1330 cfg->theta = (target - (cfg->n * ratio * Fref)) in arizona_calc_fll()
1332 cfg->lambda = (ratio * Fref) / gcd_fll; in arizona_calc_fll()
Dcs4271.c287 unsigned short ratio; /* MCLK / sample rate */ member
330 unsigned int ratio, val; in cs4271_hw_params() local
369 ratio = cs4271->mclk / cs4271->rate; in cs4271_hw_params()
373 (cs4271_clk_tab[i].ratio == ratio)) in cs4271_hw_params()
Dwm8523.c105 int ratio; member
151 lrclk_ratios[i].ratio) in wm8523_hw_params()
198 val = freq / lrclk_ratios[i].ratio; in wm8523_set_dai_sysclk()
Dsta32x.c510 int ratio; member
556 for (j = 0; mclk_ratios[ir][j].ratio; j++) { in sta32x_set_dai_sysclk()
557 if (mclk_ratios[ir][j].ratio * fs == freq) { in sta32x_set_dai_sysclk()
665 for (i = 0; mclk_ratios[ir][i].ratio; i++) in sta32x_hw_params()
666 if (mclk_ratios[ir][i].ratio * rate == sta32x->mclk) { in sta32x_hw_params()
Dwm8580.c512 int i, ratio, osr; in wm8580_paif_hw_params() local
536 ratio = wm8580->sysclk[dai->driver->id] / params_rate(params); in wm8580_paif_hw_params()
538 if (ratio == wm8580_sysclk_ratios[i]) in wm8580_paif_hw_params()
550 switch (ratio) { in wm8580_paif_hw_params()
Dwm8350.c972 int ratio; /* FLL_FRATIO */ member
999 fll_div->ratio = 1; in fll_factors()
1001 fll_div->ratio = 8; in fll_factors()
1004 t2 = input * fll_div->ratio; in fll_factors()
1054 fll_div.ratio); in wm8350_set_fll()
1062 (fll_div.ratio << 11) | (fll_div. in wm8350_set_fll()
1069 (fll_div.ratio == 8 ? WM8350_FLL_SLOW_LOCK_REF : 0)); in wm8350_set_fll()
Dwm8770.c423 int ratio; in wm8770_hw_params() local
459 ratio = wm8770->sysclk / params_rate(params); in wm8770_hw_params()
460 if (ratio == mclk_ratios[i]) in wm8770_hw_params()
Dwm8993.c154 int ratio; member
376 int ratio; member
432 target /= fll_fratios[i].ratio; in fll_factors()
1246 best_val = abs((wm8993->sysclk_rate / clk_sys_rates[0].ratio) in wm8993_hw_params()
1250 clk_sys_rates[i].ratio) - wm8993->fs); in wm8993_hw_params()
1257 clk_sys_rates[best].ratio); in wm8993_hw_params()
Dwm8904.c1215 int ratio; member
1322 best_val = abs((wm8904->sysclk_rate / clk_sys_rates[0].ratio) in wm8904_hw_params()
1326 clk_sys_rates[i].ratio) - wm8904->fs); in wm8904_hw_params()
1333 clk_sys_rates[best].ratio); in wm8904_hw_params()
1581 int ratio; member
1636 target /= fll_fratios[i].ratio; in fll_factors()
Dwm8961.c474 int ratio; member
550 if (wm8961_clk_sys_ratio[i].ratio >= target) in wm8961_hw_params()
558 wm8961_clk_sys_ratio[i].ratio, wm8961->sysclk, fs, in wm8961_hw_params()
Dwm8741.c115 int ratio; member
232 lrclk_ratios[i].ratio) in wm8741_hw_params()
Dwm8983.c169 int ratio; member
771 == fs_ratios[i].ratio) in wm8983_hw_params()
781 dev_dbg(dai->dev, "MCLK ratio = %dfs\n", fs_ratios[i].ratio); in wm8983_hw_params()
Dwm8985.c190 int ratio; member
750 == fs_ratios[i].ratio) in wm8985_hw_params()
760 dev_dbg(dai->dev, "MCLK ratio = %dfs\n", fs_ratios[i].ratio); in wm8985_hw_params()
Dwm8903.c1397 int ratio; member
1552 best_val = ((clk_sys * 10) / bclk_divs[0].ratio) - bclk; in wm8903_hw_params()
1555 cur_val = ((clk_sys * 10) / bclk_divs[i].ratio) - bclk; in wm8903_hw_params()
1567 bclk_divs[bclk_div].ratio / 10, bclk, in wm8903_hw_params()
1568 (clk_sys * 10) / bclk_divs[bclk_div].ratio); in wm8903_hw_params()
Dcs42l73.c945 u8 ratio; member
1002 cs42l73_mclkx_coeffs[mclkx_coeff].ratio; in cs42l73_set_mclk()
Dcs42l52.c684 u8 ratio; member
864 (clk_map_table[index].ratio << CLK_RATIO_SHIFT) | in cs42l52_pcm_hw_params()
/sound/pci/au88x0/
Dau88x0_core.c487 vortex_src_persist_convratio(vortex_t * vortex, unsigned char src, int ratio) in vortex_src_persist_convratio() argument
492 hwwrite(vortex->mmio, VORTEX_SRC_CONVRATIO + (src << 2), ratio); in vortex_src_persist_convratio()
499 while (temp != ratio); in vortex_src_persist_convratio()
517 vortex_src_change_convratio(vortex_t * vortex, unsigned char src, int ratio)
521 if ((ratio & 0x10000) && (ratio != 0x10000)) {
522 if (ratio & 0x3fff)
523 a = (0x11 - ((ratio >> 0xe) & 0x3)) - 1;
525 a = (0x11 - ((ratio >> 0xe) & 0x3)) - 2;
533 vortex_src_persist_convratio(vortex, src, ratio);
/sound/synth/emux/
Dsoundfont.c798 snd_sf_linear_to_log(unsigned int amount, int offset, int ratio) in snd_sf_linear_to_log() argument
812 v = (v * ratio) >> 16; in snd_sf_linear_to_log()
813 v += (24 - bit) * ratio; in snd_sf_linear_to_log()

12