Searched refs:pre_div_b (Results 1 – 2 of 2) sorted by relevance
/linux/sound/soc/img/ |
H A D | img-spdif-out.c | 237 long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; in img_spdif_out_hw_params() local 257 pre_div_b = clk_round_rate(spdif->clk_ref, rate * 384); in img_spdif_out_hw_params() 258 if (pre_div_b < 0) in img_spdif_out_hw_params() 259 return pre_div_b; in img_spdif_out_hw_params() 262 diff_b = abs((pre_div_b / 384) - rate); in img_spdif_out_hw_params() 266 clk_set_rate(spdif->clk_ref, pre_div_b); in img_spdif_out_hw_params()
|
H A D | img-i2s-out.c | 218 long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; in img_i2s_out_hw_params() local 239 pre_div_b = clk_round_rate(i2s->clk_ref, rate * 384); in img_i2s_out_hw_params() 240 if (pre_div_b < 0) in img_i2s_out_hw_params() 241 return pre_div_b; in img_i2s_out_hw_params() 244 diff_b = abs((pre_div_b / 384) - rate); in img_i2s_out_hw_params() 248 clk_set_rate(i2s->clk_ref, pre_div_b); in img_i2s_out_hw_params()
|