Searched refs:weight_b (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/sound/usb/caiaq/
H A Dinput.c146 int weight_a, weight_b; decode_erp() local
152 weight_b = abs(mid_value - a) - (range / 2 - 100) / 2; decode_erp()
154 if (weight_b < 0) decode_erp()
155 weight_b = 0; decode_erp()
157 if (weight_b > 100) decode_erp()
158 weight_b = 100; decode_erp()
160 weight_a = 100 - weight_b; decode_erp()
181 ret = pos_a * weight_a + pos_b * weight_b; decode_erp()

Completed in 47 milliseconds