Home
last modified time | relevance | path

Searched refs:diff_a (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/sound/soc/img/
Dimg-spdif-out.c240 long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; in img_spdif_out_hw_params() local
264 diff_a = abs((pre_div_a / 256) - rate); in img_spdif_out_hw_params()
268 if (diff_a > diff_b) in img_spdif_out_hw_params()
280 diff_a = abs((clk_rate / 256) - rate); in img_spdif_out_hw_params()
284 if (diff_a <= diff_b) in img_spdif_out_hw_params()
Dimg-i2s-out.c221 long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; in img_i2s_out_hw_params() local
246 diff_a = abs((pre_div_a / 256) - rate); in img_i2s_out_hw_params()
250 if (diff_a > diff_b) in img_i2s_out_hw_params()
262 diff_a = abs((clk_rate / 256) - rate); in img_i2s_out_hw_params()
265 if (diff_a > diff_b) in img_i2s_out_hw_params()