Lines Matching refs:control

39 		       int control, int value);
138 ev->data.control.param, ev->data.control.value); in snd_midi_process_event()
141 chan->midi_program = ev->data.control.value; in snd_midi_process_event()
144 chan->midi_pitchbend = ev->data.control.value; in snd_midi_process_event()
145 if (ops->control) in snd_midi_process_event()
146 ops->control(drv, MIDI_CTL_PITCHBEND, chan); in snd_midi_process_event()
149 chan->midi_pressure = ev->data.control.value; in snd_midi_process_event()
150 if (ops->control) in snd_midi_process_event()
151 ops->control(drv, MIDI_CTL_CHAN_PRESSURE, chan); in snd_midi_process_event()
155 if (ev->data.control.param < 32) { in snd_midi_process_event()
157 chan->control[ev->data.control.param + 32] = in snd_midi_process_event()
158 ev->data.control.value & 0x7f; in snd_midi_process_event()
160 ev->data.control.param, in snd_midi_process_event()
161 ((ev->data.control.value>>7) & 0x7f)); in snd_midi_process_event()
164 ev->data.control.param, in snd_midi_process_event()
165 ev->data.control.value); in snd_midi_process_event()
170 chan->control[MIDI_CTL_MSB_DATA_ENTRY] in snd_midi_process_event()
171 = (ev->data.control.value >> 7) & 0x7f; in snd_midi_process_event()
172 chan->control[MIDI_CTL_LSB_DATA_ENTRY] in snd_midi_process_event()
173 = ev->data.control.value & 0x7f; in snd_midi_process_event()
174 chan->control[MIDI_CTL_NONREG_PARM_NUM_MSB] in snd_midi_process_event()
175 = (ev->data.control.param >> 7) & 0x7f; in snd_midi_process_event()
176 chan->control[MIDI_CTL_NONREG_PARM_NUM_LSB] in snd_midi_process_event()
177 = ev->data.control.param & 0x7f; in snd_midi_process_event()
183 chan->control[MIDI_CTL_MSB_DATA_ENTRY] in snd_midi_process_event()
184 = (ev->data.control.value >> 7) & 0x7f; in snd_midi_process_event()
185 chan->control[MIDI_CTL_LSB_DATA_ENTRY] in snd_midi_process_event()
186 = ev->data.control.value & 0x7f; in snd_midi_process_event()
187 chan->control[MIDI_CTL_REGIST_PARM_NUM_MSB] in snd_midi_process_event()
188 = (ev->data.control.param >> 7) & 0x7f; in snd_midi_process_event()
189 chan->control[MIDI_CTL_REGIST_PARM_NUM_LSB] in snd_midi_process_event()
190 = ev->data.control.param & 0x7f; in snd_midi_process_event()
260 struct snd_midi_channel *chan, int control, int value) in do_control() argument
264 if (control >= ARRAY_SIZE(chan->control)) in do_control()
268 if ((control >=64 && control <=69) || (control >= 80 && control <= 83)) { in do_control()
272 chan->control[control] = value; in do_control()
274 switch (control) { in do_control()
311 chan->control[MIDI_CTL_LSB_DATA_ENTRY] = 0; in do_control()
367 if (ops->control) in do_control()
368 ops->control(drv, control, chan); in do_control()
417 type = (chan->control[MIDI_CTL_REGIST_PARM_NUM_MSB] << 8) | in rpn()
418 chan->control[MIDI_CTL_REGIST_PARM_NUM_LSB]; in rpn()
419 val = (chan->control[MIDI_CTL_MSB_DATA_ENTRY] << 7) | in rpn()
420 chan->control[MIDI_CTL_LSB_DATA_ENTRY]; in rpn()
578 chset->channels[i].control[MIDI_CTL_MSB_BANK] = 127; in sysex()
580 chset->channels[i].control[MIDI_CTL_MSB_BANK] = 0; in sysex()
706 memset(chan->control, 0, sizeof(chan->control)); in snd_midi_reset_controllers()