Lines Matching +full:sens +full:-
1 // SPDX-License-Identifier: GPL-2.0-or-later
13 EXPORT_SYMBOL(snd_gf1_atten_table); /* for snd-gus-synth module */
25 e--; in snd_gf1_lvol_to_gvol_raw()
32 m = vol - (1 << e); in snd_gf1_lvol_to_gvol_raw()
35 m >>= e - 8; in snd_gf1_lvol_to_gvol_raw()
37 m <<= 8 - e; in snd_gf1_lvol_to_gvol_raw()
56 return rvol | (m << (e - 8));
57 return rvol | (m >> (8 - e));
76 us /= end - start;
78 us /= start - end;
80 value = gus->gf1.enh_mode ?
82 vol_rates[gus->gf1.active_voices - 14];
107 dev_err(gus->card->dev, "%s: overflow - freq = 0x%x\n", in snd_gf1_translate_freq()
110 return ((freq16 << 9) + (gus->gf1.playback_freq >> 1)) / gus->gf1.playback_freq; in snd_gf1_translate_freq()
128 pcents = cents < 0 ? -cents : cents;
132 /* is the cents index from 0-255 cents, and the second number in the */
140 depth = (((int) (*(vi2 + 1) - *vi1) * (pcents - *vi1) / (*vi2 - *vi1)) + v1) * fc_register >> 14;
145 return cents < 0 ? -(short) depth : (short) depth;
148 unsigned short snd_gf1_compute_pitchbend(unsigned short pitchbend, unsigned short sens)
157 if (!sens)
159 wheel = (int) pitchbend - 8192;
160 sensitivity = ((int) sens * wheel) / 128;
163 sensitivity = -sensitivity;
173 bend = (int) ((((f2 - f1) * mantissa) >> 13) + f1);
193 pr_err("patch: (1) fc frequency overflow - %u\n", fc);
196 while (scale--)
200 pr_err("patch: (2) fc frequency overflow - %u\n", fc);