Searched refs:pre_div_a (Results 1 – 2 of 2) sorted by relevance
/openbmc/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 254 pre_div_a = clk_round_rate(spdif->clk_ref, rate * 256); in img_spdif_out_hw_params() 255 if (pre_div_a < 0) in img_spdif_out_hw_params() 256 return pre_div_a; in img_spdif_out_hw_params() 261 diff_a = abs((pre_div_a / 256) - rate); in img_spdif_out_hw_params() 268 clk_set_rate(spdif->clk_ref, pre_div_a); 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 236 pre_div_a = clk_round_rate(i2s->clk_ref, rate * 256); in img_i2s_out_hw_params() 237 if (pre_div_a < 0) in img_i2s_out_hw_params() 238 return pre_div_a; in img_i2s_out_hw_params() 243 diff_a = abs((pre_div_a / 256) - rate); in img_i2s_out_hw_params() 250 clk_set_rate(i2s->clk_ref, pre_div_a); in img_i2s_out_hw_params()
|