Home
last modified time | relevance | path

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

/openbmc/linux/sound/usb/caiaq/
H A Dinput.c133 int weight_a, weight_b; in decode_erp() local
139 weight_b = abs(mid_value - a) - (range / 2 - 100) / 2; in decode_erp()
141 if (weight_b < 0) in decode_erp()
142 weight_b = 0; in decode_erp()
144 if (weight_b > 100) in decode_erp()
145 weight_b = 100; in decode_erp()
147 weight_a = 100 - weight_b; in decode_erp()
168 ret = pos_a * weight_a + pos_b * weight_b; in decode_erp()