Lines Matching refs:dac_rate
520 unsigned long dac_rate) in pcm512x_ncp_target() argument
526 if (dac_rate <= 6144000) in pcm512x_ncp_target()
860 unsigned long dac_rate; in pcm512x_pllin_dac_rate() local
869 for (dac_rate = rounddown(pcm512x_dac_max(pcm512x, 6144000), osr_rate); in pcm512x_pllin_dac_rate()
870 dac_rate; in pcm512x_pllin_dac_rate()
871 dac_rate -= osr_rate) { in pcm512x_pllin_dac_rate()
873 if (pllin_rate / dac_rate > 128) in pcm512x_pllin_dac_rate()
876 if (!(pllin_rate % dac_rate)) in pcm512x_pllin_dac_rate()
877 return dac_rate; in pcm512x_pllin_dac_rate()
879 dac_rate -= osr_rate; in pcm512x_pllin_dac_rate()
903 unsigned long dac_rate; in pcm512x_set_dividers() local
1003 dac_rate = pcm512x_pllin_dac_rate(dai, osr_rate, pllin_rate); in pcm512x_set_dividers()
1004 if (dac_rate) { in pcm512x_set_dividers()
1045 dac_rate = dac_mul * osr_rate; in pcm512x_set_dividers()
1047 dac_rate, sample_rate); in pcm512x_set_dividers()
1060 osr_div = DIV_ROUND_CLOSEST(dac_rate, osr_rate); in pcm512x_set_dividers()
1066 dac_div = DIV_ROUND_CLOSEST(dacsrc_rate, dac_rate); in pcm512x_set_dividers()
1071 dac_rate = dacsrc_rate / dac_div; in pcm512x_set_dividers()
1073 ncp_div = DIV_ROUND_CLOSEST(dac_rate, in pcm512x_set_dividers()
1074 pcm512x_ncp_target(pcm512x, dac_rate)); in pcm512x_set_dividers()
1075 if (ncp_div > 128 || dac_rate / ncp_div > 2048000) { in pcm512x_set_dividers()
1077 ncp_div = DIV_ROUND_UP(dac_rate, 2048000); in pcm512x_set_dividers()