Searched refs:den (Results 1 – 18 of 18) sorted by relevance
/sound/core/ |
D | pcm_lib.c | 789 unsigned int den; in snd_interval_ratnum() local 794 den = div_up(num, q); in snd_interval_ratnum() 795 if (den < rats[k].den_min) in snd_interval_ratnum() 797 if (den > rats[k].den_max) in snd_interval_ratnum() 798 den = rats[k].den_max; in snd_interval_ratnum() 801 r = (den - rats[k].den_min) % rats[k].den_step; in snd_interval_ratnum() 803 den -= r; in snd_interval_ratnum() 805 diff = num - q * den; in snd_interval_ratnum() 809 diff * best_den < best_diff * den) { in snd_interval_ratnum() 811 best_den = den; in snd_interval_ratnum() [all …]
|
/sound/soc/codecs/ |
D | pcm512x.c | 757 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 …]
|
D | cs43130.h | 377 u16 den; member
|
D | cs43130.c | 714 (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/ |
D | timer.c | 48 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/ |
D | sb8_main.c | 67 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/ |
D | atmel_ssc_dai.c | 203 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/ |
D | hda_controller.c | 353 static u64 azx_scale64(u64 base, u32 num, u32 den) in azx_scale64() argument 357 rem = do_div(base, den); in azx_scale64() 362 do_div(rem, den); in azx_scale64()
|
/sound/usb/line6/ |
D | podhd.c | 49 .den = 1,
|
D | pod.c | 117 .den = 2
|
D | toneport.c | 70 .den = 1
|
D | playback.c | 151 line6pcm->properties->rates.rats[0].den * in submit_audio_out_urb()
|
/sound/soc/stm/ |
D | stm32_sai_sub.c | 992 int sai_clk_rate, mclk_ratio, den; in stm32_sai_configure_clock() local 1057 den = sai->fs_length * params_rate(params); in stm32_sai_configure_clock() 1059 den); in stm32_sai_configure_clock()
|
/sound/usb/ |
D | mixer_quirks.c | 2010 u32 den; in snd_rme_current_freq_get() local 2020 err = snd_rme_read_value(chip, SND_RME_GET_CURRENT_FREQ, &den); in snd_rme_current_freq_get() 2023 freq = (den == 0) ? 0 : div64_u64(num, den); in snd_rme_current_freq_get()
|
/sound/pci/ |
D | azt3328.c | 2220 unsigned long *num, unsigned long *den) in snd_azf3328_timer_precise_resolution() argument 2223 *den = 1024000 / seqtimer_scaling; in snd_azf3328_timer_precise_resolution()
|
D | sonicvibes.c | 241 .den = 65536,
|
D | ens1370.c | 478 .den = 1 << 15,
|
/sound/pci/ymfpci/ |
D | ymfpci_main.c | 1920 unsigned long *num, unsigned long *den) in snd_ymfpci_timer_precise_resolution() argument 1923 *den = 96000; in snd_ymfpci_timer_precise_resolution()
|