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

/linux-4.4.14/sound/drivers/opl3/
H A Dopl3_voice.h31 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan);
32 void snd_opl3_note_off(void *p, int note, int vel, struct snd_midi_channel *chan);
33 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan);
39 void snd_opl3_calc_volume(unsigned char *reg, int vel, struct snd_midi_channel *chan);
44 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int on_off, int vel, struct snd_midi_channel *chan);
H A Dopl3_midi.c32 static void snd_opl3_note_off_unsafe(void *p, int note, int vel,
64 void snd_opl3_calc_volume(unsigned char *volbyte, int vel, snd_opl3_calc_volume() argument
70 volume = (vel * chan->gm_volume * chan->gm_expression) / (127*127); snd_opl3_calc_volume()
294 void snd_opl3_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) snd_opl3_note_on() argument
325 snd_printk(KERN_DEBUG "Note on, ch %i, inst %i, note %i, vel %i\n", snd_opl3_note_on()
326 chan->number, chan->midi_program, note, vel); snd_opl3_note_on()
353 snd_opl3_drum_switch(opl3, note, vel, 1, chan); snd_opl3_note_on()
459 snd_opl3_calc_volume(&vol_op[3], vel, chan); snd_opl3_note_on()
462 snd_opl3_calc_volume(&vol_op[2], vel, chan); snd_opl3_note_on()
465 snd_opl3_calc_volume(&vol_op[0], vel, chan); snd_opl3_note_on()
468 snd_opl3_calc_volume(&vol_op[1], vel, chan); snd_opl3_note_on()
471 snd_opl3_calc_volume(&vol_op[1], vel, chan); snd_opl3_note_on()
473 snd_opl3_calc_volume(&vol_op[0], vel, chan); snd_opl3_note_on()
671 static void snd_opl3_note_off_unsafe(void *p, int note, int vel, snd_opl3_note_off_unsafe() argument
688 snd_opl3_drum_switch(opl3, note, vel, 0, chan); snd_opl3_note_off_unsafe()
708 void snd_opl3_note_off(void *p, int note, int vel, snd_opl3_note_off() argument
715 snd_opl3_note_off_unsafe(p, note, vel, chan); snd_opl3_note_off()
722 void snd_opl3_key_press(void *p, int note, int vel, struct snd_midi_channel *chan) snd_opl3_key_press() argument
H A Dopl3_drums.c138 int vel, struct snd_midi_channel *chan) snd_opl3_drum_vol_set()
147 snd_opl3_calc_volume(&reg_val, vel, chan); snd_opl3_drum_vol_set()
185 void snd_opl3_drum_switch(struct snd_opl3 *opl3, int note, int vel, int on_off, snd_opl3_drum_switch() argument
219 snd_opl3_drum_vol_set(opl3, drum_voice, vel, chan); snd_opl3_drum_switch()
136 snd_opl3_drum_vol_set(struct snd_opl3 *opl3, struct snd_opl3_drum_voice *data, int vel, struct snd_midi_channel *chan) snd_opl3_drum_vol_set() argument
/linux-4.4.14/sound/core/seq/oss/
H A Dseq_oss_event.c40 static int note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
41 static int note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev);
42 static int set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev);
111 return note_off_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev); old_event()
114 return note_on_event(dp, 0, q->n.chn, q->n.note, q->n.vel, ev); old_event()
286 note_on_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev) note_on_event() argument
298 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); note_on_event()
304 //if (! vel) note_on_event()
308 if (info->ch[ch].vel) note_on_event()
314 info->ch[ch].vel = vel; note_on_event()
315 return set_note_event(dp, dev, type, ch, info->ch[ch].note, vel, ev); note_on_event()
324 info->ch[ch].vel = vel; note_on_event()
325 if (vel) /* non-zero velocity - start the note now */ note_on_event()
326 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); note_on_event()
331 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); note_on_event()
335 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_KEYPRESS, ch, note - 128, vel, ev); note_on_event()
337 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); note_on_event()
346 note_off_event(struct seq_oss_devinfo *dp, int dev, int ch, int note, int vel, struct snd_seq_event *ev) note_off_event() argument
358 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEON, ch, note, vel, ev); note_off_event()
363 info->ch[ch].vel = 0; note_off_event()
365 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev); note_off_event()
372 return set_note_event(dp, dev, SNDRV_SEQ_EVENT_NOTEOFF, ch, note, vel, ev); note_off_event()
382 set_note_event(struct seq_oss_devinfo *dp, int dev, int type, int ch, int note, int vel, struct snd_seq_event *ev) set_note_event() argument
391 ev->data.note.velocity = vel; set_note_event()
H A Dseq_oss_event.h44 unsigned char vel; member in struct:evrec_note
H A Dseq_oss_device.h61 int note, vel; member in struct:seq_oss_chinfo
H A Dseq_oss_synth.c389 info->ch[i].vel = 0; reset_channels()
/linux-4.4.14/drivers/staging/iio/resolver/
H A Dad2s1200.c51 s16 vel; ad2s1200_read_raw() local
71 vel = (((s16)(st->rx[0])) << 4) | ((st->rx[1] & 0xF0) >> 4); ad2s1200_read_raw()
72 vel = sign_extend32(vel, 11); ad2s1200_read_raw()
73 *val = vel; ad2s1200_read_raw()
H A Dad2s1210.c474 s16 vel; ad2s1210_read_raw() local
508 vel = be16_to_cpup((__be16 *) st->rx); ad2s1210_read_raw()
509 vel >>= 16 - st->resolution; ad2s1210_read_raw()
510 if (vel & 0x8000) { ad2s1210_read_raw()
512 vel |= negative; ad2s1210_read_raw()
514 *val = vel; ad2s1210_read_raw()
/linux-4.4.14/sound/synth/emux/
H A Demux_voice.h47 void snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan);
48 void snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan);
49 void snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan);
H A Demux_synth.c41 int *notep, int vel, struct snd_midi_channel *chan,
60 snd_emux_note_on(void *p, int note, int vel, struct snd_midi_channel *chan) snd_emux_note_on() argument
78 nvoices = get_zone(emu, port, &note, vel, chan, table); snd_emux_note_on()
114 vp->velocity = vel; snd_emux_note_on()
159 snd_emux_note_off(void *p, int note, int vel, struct snd_midi_channel *chan) snd_emux_note_off() argument
236 snd_emux_key_press(void *p, int note, int vel, struct snd_midi_channel *chan) snd_emux_key_press() argument
257 vp->velocity = vel; snd_emux_key_press()
904 int *notep, int vel, struct snd_midi_channel *chan, get_zone()
920 return snd_soundfont_search_zone(emu->sflist, notep, vel, preset, bank, get_zone()
903 get_zone(struct snd_emux *emu, struct snd_emux_port *port, int *notep, int vel, struct snd_midi_channel *chan, struct snd_sf_zone **table) get_zone() argument
H A Dsoundfont.c68 static int search_zones(struct snd_sf_list *sflist, int *notep, int vel,
1232 snd_soundfont_search_zone(struct snd_sf_list *sflist, int *notep, int vel, snd_soundfont_search_zone() argument
1249 nvoices = search_zones(sflist, notep, vel, preset, bank, snd_soundfont_search_zone()
1253 nvoices = search_zones(sflist, notep, vel, snd_soundfont_search_zone()
1285 search_zones(struct snd_sf_list *sflist, int *notep, int vel, search_zones() argument
1296 vel >= zp->v.vellow && vel <= zp->v.velhigh) { search_zones()
1307 nvoices = search_zones(sflist, &key, vel, search_zones()
/linux-4.4.14/include/sound/
H A Dseq_midi_emul.h83 void (*note_on)(void *private_data, int note, int vel, struct snd_midi_channel *chan);
84 void (*note_off)(void *private_data,int note, int vel, struct snd_midi_channel *chan); /* release note */
85 void (*key_press)(void *private_data, int note, int vel, struct snd_midi_channel *chan);
H A Dsoundfont.h115 int snd_soundfont_search_zone(struct snd_sf_list *sflist, int *notep, int vel,
/linux-4.4.14/sound/drivers/opl4/
H A Dopl4_local.h225 void snd_opl4_note_on(void *p, int note, int vel, struct snd_midi_channel *chan);
226 void snd_opl4_note_off(void *p, int note, int vel, struct snd_midi_channel *chan);
H A Dopl4_synth.c482 void snd_opl4_note_on(void *private_data, int note, int vel, struct snd_midi_channel *chan) snd_opl4_note_on() argument
510 voice[i]->velocity = vel & 0x7f; snd_opl4_note_on()
563 void snd_opl4_note_off(void *private_data, int note, int vel, struct snd_midi_channel *chan) snd_opl4_note_off() argument
/linux-4.4.14/sound/core/seq/
H A Dseq_midi_emul.c49 int note, int vel);
246 int note, int vel) note_off()
258 ops->note_off(drv, note, vel, chan); note_off()
245 note_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, int note, int vel) note_off() argument

Completed in 367 milliseconds