midi_synth.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. int midi_synth_ioctl (int dev,
  3. unsigned int cmd, void __user * arg);
  4. int midi_synth_kill_note (int dev, int channel, int note, int velocity);
  5. int midi_synth_set_instr (int dev, int channel, int instr_no);
  6. int midi_synth_start_note (int dev, int channel, int note, int volume);
  7. void midi_synth_reset (int dev);
  8. int midi_synth_open (int dev, int mode);
  9. void midi_synth_close (int dev);
  10. void midi_synth_hw_control (int dev, unsigned char *event);
  11. int midi_synth_load_patch (int dev, int format, const char __user * addr,
  12. int count, int pmgr_flag);
  13. void midi_synth_panning (int dev, int channel, int pressure);
  14. void midi_synth_aftertouch (int dev, int channel, int pressure);
  15. void midi_synth_controller (int dev, int channel, int ctrl_num, int value);
  16. void midi_synth_bender (int dev, int chn, int value);
  17. void midi_synth_setup_voice (int dev, int voice, int chn);
  18. int midi_synth_send_sysex(int dev, unsigned char *bytes,int len);
  19. #ifndef _MIDI_SYNTH_C_
  20. static struct synth_info std_synth_info =
  21. {MIDI_SYNTH_NAME, 0, SYNTH_TYPE_MIDI, 0, 0, 128, 0, 128, MIDI_SYNTH_CAPS};
  22. static struct synth_operations std_midi_synth =
  23. {
  24. .owner = THIS_MODULE,
  25. .id = "MIDI",
  26. .info = &std_synth_info,
  27. .midi_dev = 0,
  28. .synth_type = SYNTH_TYPE_MIDI,
  29. .synth_subtype = 0,
  30. .open = midi_synth_open,
  31. .close = midi_synth_close,
  32. .ioctl = midi_synth_ioctl,
  33. .kill_note = midi_synth_kill_note,
  34. .start_note = midi_synth_start_note,
  35. .set_instr = midi_synth_set_instr,
  36. .reset = midi_synth_reset,
  37. .hw_control = midi_synth_hw_control,
  38. .load_patch = midi_synth_load_patch,
  39. .aftertouch = midi_synth_aftertouch,
  40. .controller = midi_synth_controller,
  41. .panning = midi_synth_panning,
  42. .bender = midi_synth_bender,
  43. .setup_voice = midi_synth_setup_voice,
  44. .send_sysex = midi_synth_send_sysex
  45. };
  46. #endif