Lines Matching refs:val
19 int (*convert)(int val);
41 int type, int val, int mode) in send_converted_effect() argument
46 cval = table[i].convert(val); in send_converted_effect()
86 static int fx_delay(int val);
87 static int fx_attack(int val);
88 static int fx_hold(int val);
89 static int fx_decay(int val);
90 static int fx_the_value(int val);
91 static int fx_twice_value(int val);
92 static int fx_conv_pitch(int val);
93 static int fx_conv_Q(int val);
128 static int fx_delay(int val) in fx_delay() argument
130 return (unsigned short)snd_sf_calc_parm_delay(val); in fx_delay()
133 static int fx_attack(int val) in fx_attack() argument
135 return (unsigned short)snd_sf_calc_parm_attack(val); in fx_attack()
138 static int fx_hold(int val) in fx_hold() argument
140 return (unsigned short)snd_sf_calc_parm_hold(val); in fx_hold()
143 static int fx_decay(int val) in fx_decay() argument
145 return (unsigned short)snd_sf_calc_parm_decay(val); in fx_decay()
148 static int fx_the_value(int val) in fx_the_value() argument
150 return (unsigned short)(val & 0xff); in fx_the_value()
153 static int fx_twice_value(int val) in fx_twice_value() argument
155 return (unsigned short)((val * 2) & 0xff); in fx_twice_value()
158 static int fx_conv_pitch(int val) in fx_conv_pitch() argument
160 return (short)(val * 4096 / 1200); in fx_conv_pitch()
163 static int fx_conv_Q(int val) in fx_conv_Q() argument
165 return (unsigned short)((val / 8) & 0xff); in fx_conv_Q()
209 static int gs_cutoff(int val) in gs_cutoff() argument
211 return (val - 64) * gs_sense[FX_CUTOFF] / 50; in gs_cutoff()
215 static int gs_filterQ(int val) in gs_filterQ() argument
217 return (val - 64) * gs_sense[FX_RESONANCE] / 50; in gs_filterQ()
221 static int gs_attack(int val) in gs_attack() argument
223 return -(val - 64) * gs_sense[FX_ATTACK] / 50; in gs_attack()
227 static int gs_decay(int val) in gs_decay() argument
229 return -(val - 64) * gs_sense[FX_RELEASE] / 50; in gs_decay()
233 static int gs_release(int val) in gs_release() argument
235 return -(val - 64) * gs_sense[FX_RELEASE] / 50; in gs_release()
239 static int gs_vib_rate(int val) in gs_vib_rate() argument
241 return (val - 64) * gs_sense[FX_VIBRATE] / 50; in gs_vib_rate()
245 static int gs_vib_depth(int val) in gs_vib_depth() argument
247 return (val - 64) * gs_sense[FX_VIBDEPTH] / 50; in gs_vib_depth()
251 static int gs_vib_delay(int val) in gs_vib_delay() argument
253 return -(val - 64) * gs_sense[FX_VIBDELAY] / 50; in gs_vib_delay()
284 int val; in snd_emux_nrpn() local
287 val = (chan->control[MIDI_CTL_MSB_DATA_ENTRY] << 7) | in snd_emux_nrpn()
289 val -= 8192; in snd_emux_nrpn()
293 val, EMUX_FX_FLAG_SET); in snd_emux_nrpn()
299 int val; in snd_emux_nrpn() local
302 val = chan->control[MIDI_CTL_MSB_DATA_ENTRY]; in snd_emux_nrpn()
306 val, EMUX_FX_FLAG_ADD); in snd_emux_nrpn()
317 static int xg_cutoff(int val) in xg_cutoff() argument
319 return (val - 64) * xg_sense[FX_CUTOFF] / 64; in xg_cutoff()
323 static int xg_filterQ(int val) in xg_filterQ() argument
325 return (val - 64) * xg_sense[FX_RESONANCE] / 64; in xg_filterQ()
329 static int xg_attack(int val) in xg_attack() argument
331 return -(val - 64) * xg_sense[FX_ATTACK] / 64; in xg_attack()
335 static int xg_release(int val) in xg_release() argument
337 return -(val - 64) * xg_sense[FX_RELEASE] / 64; in xg_release()