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

/netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/usb/caiaq/
H A Dinput.c85 int weight_a, weight_b; local
91 weight_b = abs(mid_value - a) - (range / 2 - 100) / 2;
93 if (weight_b < 0)
94 weight_b = 0;
96 if (weight_b > 100)
97 weight_b = 100;
99 weight_a = 100 - weight_b;
120 ret = pos_a * weight_a + pos_b * weight_b;

Completed in 50 milliseconds