Lines Matching refs:dac_rate
522 unsigned long dac_rate) in pcm512x_ncp_target() argument
528 if (dac_rate <= 6144000) in pcm512x_ncp_target()
862 unsigned long dac_rate; in pcm512x_pllin_dac_rate() local
871 for (dac_rate = rounddown(pcm512x_dac_max(pcm512x, 6144000), osr_rate); in pcm512x_pllin_dac_rate()
872 dac_rate; in pcm512x_pllin_dac_rate()
873 dac_rate -= osr_rate) { in pcm512x_pllin_dac_rate()
875 if (pllin_rate / dac_rate > 128) in pcm512x_pllin_dac_rate()
878 if (!(pllin_rate % dac_rate)) in pcm512x_pllin_dac_rate()
879 return dac_rate; in pcm512x_pllin_dac_rate()
881 dac_rate -= osr_rate; in pcm512x_pllin_dac_rate()
905 unsigned long dac_rate; in pcm512x_set_dividers() local
1005 dac_rate = pcm512x_pllin_dac_rate(dai, osr_rate, pllin_rate); in pcm512x_set_dividers()
1006 if (dac_rate) { in pcm512x_set_dividers()
1047 dac_rate = dac_mul * osr_rate; in pcm512x_set_dividers()
1049 dac_rate, sample_rate); in pcm512x_set_dividers()
1062 osr_div = DIV_ROUND_CLOSEST(dac_rate, osr_rate); in pcm512x_set_dividers()
1068 dac_div = DIV_ROUND_CLOSEST(dacsrc_rate, dac_rate); in pcm512x_set_dividers()
1073 dac_rate = dacsrc_rate / dac_div; in pcm512x_set_dividers()
1075 ncp_div = DIV_ROUND_CLOSEST(dac_rate, in pcm512x_set_dividers()
1076 pcm512x_ncp_target(pcm512x, dac_rate)); in pcm512x_set_dividers()
1077 if (ncp_div > 128 || dac_rate / ncp_div > 2048000) { in pcm512x_set_dividers()
1079 ncp_div = DIV_ROUND_UP(dac_rate, 2048000); in pcm512x_set_dividers()