Searched refs:diff_a (Results 1 – 2 of 2) sorted by relevance
/sound/soc/img/ |
D | img-spdif-out.c | 229 long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; in img_spdif_out_hw_params() local 253 diff_a = abs((pre_div_a / 256) - rate); in img_spdif_out_hw_params() 257 if (diff_a > diff_b) in img_spdif_out_hw_params() 269 diff_a = abs((clk_rate / 256) - rate); in img_spdif_out_hw_params() 273 if (diff_a <= diff_b) in img_spdif_out_hw_params()
|
D | img-i2s-out.c | 214 long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; in img_i2s_out_hw_params() local 239 diff_a = abs((pre_div_a / 256) - rate); in img_i2s_out_hw_params() 243 if (diff_a > diff_b) in img_i2s_out_hw_params() 255 diff_a = abs((clk_rate / 256) - rate); in img_i2s_out_hw_params() 258 if (diff_a > diff_b) in img_i2s_out_hw_params()
|