Lines Matching refs:gain
64 * The gain algorithm as it stands supports gain factors up to 32767, which
65 * is a fraction more than 90 dB, so set 90 dB as the maximum possible gain.
129 unsigned int gain = (b >> VOL_SCALE_SHIFT);
133 if (gain) {
134 long long amp = (long long)a * gain + fraction;
147 unsigned int gain = b >> VOL_SCALE_SHIFT;
150 if (gain) {
151 long long amp = (long long)a * gain + fraction;
163 unsigned int gain = b >> VOL_SCALE_SHIFT;
167 if (gain) {
168 int amp = a * gain + fraction;