Lines Matching refs:dac_rate
523 unsigned long dac_rate) in pcm512x_ncp_target() argument
529 if (dac_rate <= 6144000) in pcm512x_ncp_target()
863 unsigned long dac_rate; in pcm512x_pllin_dac_rate() local
872 for (dac_rate = rounddown(pcm512x_dac_max(pcm512x, 6144000), osr_rate); in pcm512x_pllin_dac_rate()
873 dac_rate; in pcm512x_pllin_dac_rate()
874 dac_rate -= osr_rate) { in pcm512x_pllin_dac_rate()
876 if (pllin_rate / dac_rate > 128) in pcm512x_pllin_dac_rate()
879 if (!(pllin_rate % dac_rate)) in pcm512x_pllin_dac_rate()
880 return dac_rate; in pcm512x_pllin_dac_rate()
882 dac_rate -= osr_rate; in pcm512x_pllin_dac_rate()
906 unsigned long dac_rate; in pcm512x_set_dividers() local
1006 dac_rate = pcm512x_pllin_dac_rate(dai, osr_rate, pllin_rate); in pcm512x_set_dividers()
1007 if (dac_rate) { in pcm512x_set_dividers()
1048 dac_rate = dac_mul * osr_rate; in pcm512x_set_dividers()
1050 dac_rate, sample_rate); in pcm512x_set_dividers()
1063 osr_div = DIV_ROUND_CLOSEST(dac_rate, osr_rate); in pcm512x_set_dividers()
1069 dac_div = DIV_ROUND_CLOSEST(dacsrc_rate, dac_rate); in pcm512x_set_dividers()
1074 dac_rate = dacsrc_rate / dac_div; in pcm512x_set_dividers()
1076 ncp_div = DIV_ROUND_CLOSEST(dac_rate, in pcm512x_set_dividers()
1077 pcm512x_ncp_target(pcm512x, dac_rate)); in pcm512x_set_dividers()
1078 if (ncp_div > 128 || dac_rate / ncp_div > 2048000) { in pcm512x_set_dividers()
1080 ncp_div = DIV_ROUND_UP(dac_rate, 2048000); in pcm512x_set_dividers()