Home
last modified time | relevance | path

Searched refs:den (Results 1 – 18 of 18) sorted by relevance

/sound/core/
Dpcm_lib.c800 unsigned int den; in snd_interval_ratnum() local
805 den = div_up(num, q); in snd_interval_ratnum()
806 if (den < rats[k].den_min) in snd_interval_ratnum()
808 if (den > rats[k].den_max) in snd_interval_ratnum()
809 den = rats[k].den_max; in snd_interval_ratnum()
812 r = (den - rats[k].den_min) % rats[k].den_step; in snd_interval_ratnum()
814 den -= r; in snd_interval_ratnum()
816 diff = num - q * den; in snd_interval_ratnum()
820 diff * best_den < best_diff * den) { in snd_interval_ratnum()
822 best_den = den; in snd_interval_ratnum()
[all …]
/sound/soc/codecs/
Dpcm512x.c757 unsigned long den; in pcm512x_find_pll_coeff() local
763 den = pllin_rate / common; in pcm512x_find_pll_coeff()
766 if (pllin_rate / den > 20000000 && num < 8) { in pcm512x_find_pll_coeff()
767 num *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff()
768 den *= DIV_ROUND_UP(pllin_rate / den, 20000000); in pcm512x_find_pll_coeff()
770 dev_dbg(dev, "num / den = %lu / %lu\n", num, den); in pcm512x_find_pll_coeff()
772 P = den; in pcm512x_find_pll_coeff()
773 if (den <= 15 && num <= 16 * 63 in pcm512x_find_pll_coeff()
798 common = gcd(10000 * num, den); in pcm512x_find_pll_coeff()
800 den /= common; in pcm512x_find_pll_coeff()
[all …]
Dcs43130.h377 u16 den; member
Dcs43130.c714 (clk_gen->den & CS43130_SP_M_LSB_DATA_MASK) >> in cs43130_set_sp_fmt()
717 (clk_gen->den & CS43130_SP_M_MSB_DATA_MASK) >> in cs43130_set_sp_fmt()
728 (clk_gen->den & CS43130_SP_M_LSB_DATA_MASK) >> in cs43130_set_sp_fmt()
731 (clk_gen->den & CS43130_SP_M_MSB_DATA_MASK) >> in cs43130_set_sp_fmt()
/sound/pci/emu10k1/
Dtimer.c48 unsigned long *num, unsigned long *den) in snd_emu10k1_timer_precise_resolution() argument
51 *den = 48000; in snd_emu10k1_timer_precise_resolution()
/sound/isa/sb/
Dsb8_main.c67 unsigned int num = 0, den = 0; in snd_sb8_hw_constraint_rate_channels() local
69 2, stereo_clocks, &num, &den); in snd_sb8_hw_constraint_rate_channels()
70 if (err >= 0 && den) { in snd_sb8_hw_constraint_rate_channels()
72 params->rate_den = den; in snd_sb8_hw_constraint_rate_channels()
/sound/soc/atmel/
Datmel_ssc_dai.c203 unsigned int num = 0, den = 0; in atmel_ssc_hw_rule_rate() local
239 ret = snd_interval_ratnum(i, 1, &r, &num, &den); in atmel_ssc_hw_rule_rate()
240 if (ret >= 0 && den && rule->var == SNDRV_PCM_HW_PARAM_RATE) { in atmel_ssc_hw_rule_rate()
242 params->rate_den = den; in atmel_ssc_hw_rule_rate()
/sound/pci/hda/
Dhda_controller.c350 static u64 azx_scale64(u64 base, u32 num, u32 den) in azx_scale64() argument
354 rem = do_div(base, den); in azx_scale64()
359 do_div(rem, den); in azx_scale64()
/sound/usb/line6/
Dpod.c117 .den = 2
Dpodhd.c52 .den = 1,
Dtoneport.c70 .den = 1
Dplayback.c151 line6pcm->properties->rates.rats[0].den * in submit_audio_out_urb()
/sound/soc/stm/
Dstm32_sai_sub.c993 int sai_clk_rate, mclk_ratio, den; in stm32_sai_configure_clock() local
1058 den = sai->fs_length * params_rate(params); in stm32_sai_configure_clock()
1060 den); in stm32_sai_configure_clock()
/sound/usb/
Dmixer_quirks.c2017 u32 den; in snd_rme_current_freq_get() local
2027 err = snd_rme_read_value(chip, SND_RME_GET_CURRENT_FREQ, &den); in snd_rme_current_freq_get()
2030 freq = (den == 0) ? 0 : div64_u64(num, den); in snd_rme_current_freq_get()
/sound/pci/
Dazt3328.c2195 unsigned long *num, unsigned long *den) in snd_azf3328_timer_precise_resolution() argument
2198 *den = 1024000 / seqtimer_scaling; in snd_azf3328_timer_precise_resolution()
Dsonicvibes.c241 .den = 65536,
Dens1370.c478 .den = 1 << 15,
/sound/pci/ymfpci/
Dymfpci_main.c1927 unsigned long *num, unsigned long *den) in snd_ymfpci_timer_precise_resolution() argument
1930 *den = 96000; in snd_ymfpci_timer_precise_resolution()