/Linux-v6.1/sound/pci/ca0106/ |
D | ca_midi.c | 4 * Creative Audio MIDI, for the CA0106 Driver 20 #define ca_midi_write_data(midi, data) midi->write(midi, data, 0) argument 21 #define ca_midi_write_cmd(midi, data) midi->write(midi, data, 1) argument 22 #define ca_midi_read_data(midi) midi->read(midi, 0) argument 23 #define ca_midi_read_stat(midi) midi->read(midi, 1) argument 24 #define ca_midi_input_avail(midi) (!(ca_midi_read_stat(midi) & midi->input_avail)) argument 25 #define ca_midi_output_ready(midi) (!(ca_midi_read_stat(midi) & midi->output_ready)) argument 27 static void ca_midi_clear_rx(struct snd_ca_midi *midi) in ca_midi_clear_rx() argument 30 for (; timeout > 0 && ca_midi_input_avail(midi); timeout--) in ca_midi_clear_rx() 31 ca_midi_read_data(midi); in ca_midi_clear_rx() [all …]
|
D | ca_midi.h | 4 * Creative Audio MIDI, for the CA0106 Driver 40 void (*interrupt)(struct snd_ca_midi *midi, unsigned int status); 41 void (*interrupt_enable)(struct snd_ca_midi *midi, int intr); 42 void (*interrupt_disable)(struct snd_ca_midi *midi, int intr); 44 unsigned char (*read)(struct snd_ca_midi *midi, int idx); 45 void (*write)(struct snd_ca_midi *midi, int data, int idx); 52 int ca_midi_init(void *card, struct snd_ca_midi *midi, int device, char *name);
|
/Linux-v6.1/sound/isa/wavefront/ |
D | wavefront_midi.c | 6 /* The low level driver for the WaveFront ICS2115 MIDI interface(s) 14 * "Virtual MIDI" mode. In this mode, there are effectively *two* 15 * MIDI buses accessible via the interface, one that is routed 18 * MIDI devices to the board. 20 * This driver fully supports this mode, allowing two distinct MIDI 22 * MIDI routing, 16 to the WaveFront synth and 16 to the external MIDI 29 * using the two otherwise unused MIDI bytes. See the code for more details. 31 * NOTE: VIRTUAL MIDI MODE IS ON BY DEFAULT (see lowlevel/isa/wavefront.c) 33 * The main reason to turn off Virtual MIDI mode is when you want to 34 * tightly couple the WaveFront synth with an external MIDI [all …]
|
/Linux-v6.1/sound/pci/emu10k1/ |
D | emumpu401.c | 62 static void do_emu10k1_midi_interrupt(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, unsig… in do_emu10k1_midi_interrupt() argument 66 if (midi->rmidi == NULL) { in do_emu10k1_midi_interrupt() 67 snd_emu10k1_intr_disable(emu, midi->tx_enable | midi->rx_enable); in do_emu10k1_midi_interrupt() 71 spin_lock(&midi->input_lock); in do_emu10k1_midi_interrupt() 72 if ((status & midi->ipr_rx) && mpu401_input_avail(emu, midi)) { in do_emu10k1_midi_interrupt() 73 if (!(midi->midi_mode & EMU10K1_MIDI_MODE_INPUT)) { in do_emu10k1_midi_interrupt() 74 mpu401_clear_rx(emu, midi); in do_emu10k1_midi_interrupt() 76 byte = mpu401_read_data(emu, midi); in do_emu10k1_midi_interrupt() 77 if (midi->substream_input) in do_emu10k1_midi_interrupt() 78 snd_rawmidi_receive(midi->substream_input, &byte, 1); in do_emu10k1_midi_interrupt() [all …]
|
D | emu10k1x.c | 62 #define IPR_MIDITRANSBUFEMPTY 0x00000001 /* MIDI UART transmit buffer empty */ 63 #define IPR_MIDIRECVBUFEMPTY 0x00000002 /* MIDI UART receive buffer empty */ 70 #define INTE_MIDITXENABLE 0x00000001 /* Enable MIDI transmit-buffer-empty interrupts */ 71 #define INTE_MIDIRXENABLE 0x00000002 /* Enable MIDI receive-buffer-empty interrupts */ 237 struct emu10k1x_midi midi; member 788 if (chip->midi.interrupt) in snd_emu10k1x_interrupt() 789 chip->midi.interrupt(chip, status); in snd_emu10k1x_interrupt() 1199 struct emu10k1x_midi *midi, unsigned int status) in do_emu10k1x_midi_interrupt() argument 1203 if (midi->rmidi == NULL) { in do_emu10k1x_midi_interrupt() 1204 snd_emu10k1x_intr_disable(emu, midi->tx_enable | midi->rx_enable); in do_emu10k1x_midi_interrupt() [all …]
|
/Linux-v6.1/drivers/usb/gadget/function/ |
D | f_midi.c | 3 * f_midi.c -- USB MIDI class function driver 16 * and drivers/usb/gadget/midi.c, 35 #include <linux/usb/midi.h> 44 static const char f_midi_longname[] = "MIDI Gadget"; 53 /* MIDI message states */ 110 static void f_midi_transmit(struct f_midi *midi); 213 [STRING_FUNC_IDX].s = "MIDI function", 238 * Receives a chunk of MIDI data. 243 struct f_midi *midi = ep->driver_data; in f_midi_read_data() local 244 struct snd_rawmidi_substream *substream = midi->out_substream[cable]; in f_midi_read_data() [all …]
|
/Linux-v6.1/Documentation/devicetree/bindings/sound/ |
D | serial-midi.yaml | 5 $id: http://devicetree.org/schemas/sound/serial-midi.yaml# 8 title: Generic Serial MIDI Interface 14 Generic MIDI interface using a serial device. This denotes that a serial device is 15 dedicated to MIDI communication, either to an external MIDI device through a DIN5 16 or other connector, or to a known hardwired MIDI controller. This device must be a 20 parent serial device. If the standard MIDI baud of 31.25 kBaud is needed 21 (as would be the case if interfacing with arbitrary external MIDI devices), 23 resuts in the standard MIDI baud rate, and set the 'current-speed' property to 38400 (default) 27 const: serial-midi 30 description: Baudrate to set the serial port to when this MIDI device is opened. [all …]
|
/Linux-v6.1/Documentation/sound/cards/ |
D | serial-u16550.rst | 2 Serial UART 16450/16550 MIDI driver 16 In Roland Soundcanvas mode, multiple ALSA raw MIDI substreams are supported 18 sends the nonstandard MIDI command sequence F5 NN, where NN is the substream 20 "parts", so this feature lets you treat each part as a distinct raw MIDI 30 Usage example for Roland SoundCanvas with 4 MIDI ports: 36 In MS-124T mode, one raw MIDI substream is supported (midiCnD0); the outs 38 all four MIDI Out connectors. Set the A-B switch and the speed module 48 In MS-124W S/A mode, one raw MIDI substream is supported (midiCnD0); 50 the same data to all four MIDI Out connectors at full MIDI speed. 58 In MS-124W M/B mode, the driver supports 16 ALSA raw MIDI substreams; [all …]
|
/Linux-v6.1/drivers/usb/gadget/legacy/ |
D | gmidi.c | 3 * gmidi.c -- USB MIDI Gadget Driver 13 * USB MIDI driver, Copyright (C) 2002-2005 Clemens Ladisch. 15 * Refer to the USB Device Class Definition for MIDI Devices: 36 static const char longname[] = "MIDI Gadget"; 42 MODULE_PARM_DESC(index, "Index value for the USB MIDI Gadget adapter."); 46 MODULE_PARM_DESC(id, "ID string for the USB MIDI Gadget adapter."); 50 MODULE_PARM_DESC(buflen, "MIDI buffer length"); 58 MODULE_PARM_DESC(in_ports, "Number of MIDI input ports"); 62 MODULE_PARM_DESC(out_ports, "Number of MIDI output ports"); 70 #define DRIVER_PRODUCT_NUM 0x0004 /* Linux-USB "MIDI Gadget" */ [all …]
|
/Linux-v6.1/sound/drivers/ |
D | Kconfig | 113 tristate "Virtual MIDI soundcard" 120 Say Y here to include the virtual MIDI driver. This driver 121 allows to connect applications using raw MIDI devices to 124 If you don't know what MIDI is, say N here. 130 tristate "MOTU MidiTimePiece AV multiport MIDI" 133 To use a MOTU MidiTimePiece AV multiport MIDI adapter 145 The ESI Miditerminal 4140 is a 4 In 4 Out MIDI Interface with 154 tristate "UART16550 serial MIDI driver" 157 To include support for MIDI serial port interfaces, say Y here 169 tristate "Generic serial MIDI driver" [all …]
|
D | virmidi.c | 9 * VIRTUAL RAW MIDI DEVICE CARDS 14 * MIDI device arbitrary. 27 * - Run application using a midi device (eg. /dev/snd/midiC1D0) 61 MODULE_PARM_DESC(midi_devs, "MIDI devices # (1-4)"); 65 struct snd_rawmidi *midi[MAX_MIDI_DEVICES]; member 87 "too much midi devices for virmidi %d: force to use %d\n", in snd_virmidi_probe() 97 vmidi->midi[idx] = rmidi; in snd_virmidi_probe() 98 strcpy(rmidi->name, "Virtual Raw MIDI"); in snd_virmidi_probe() 103 sprintf(card->longname, "Virtual MIDI Card %i", dev + 1); in snd_virmidi_probe()
|
/Linux-v6.1/sound/firewire/ |
D | amdtp-am824.h | 21 * AMDTP packet can include channels for MIDI conformant data. 22 * Each MIDI conformant data channel includes 8 MPX-MIDI data stream. 23 * Each MPX-MIDI data stream includes one data stream from/to MIDI ports. 25 * This module supports maximum 1 MIDI conformant data channels. 26 * Then this AMDTP packets can transfer maximum 8 MIDI data streams. 45 struct snd_rawmidi_substream *midi);
|
D | amdtp-am824.c | 19 * Nominally 3125 bytes/second, but the MIDI port's clock might be 26 * In any case, this is more than enough for the MIDI data rate. 31 struct snd_rawmidi_substream *midi[AM824_MAX_CHANNELS_FOR_MIDI * 8]; member 49 * @midi_ports: the number of MIDI ports (i.e., MPX-MIDI Data Channels) 101 /* init the position map for PCM and MIDI channels */ in amdtp_am824_set_parameters() 107 * We do not know the actual MIDI FIFO size of most devices. Just in amdtp_am824_set_parameters() 109 * the previous one is transmitted over MIDI. in amdtp_am824_set_parameters() 136 * amdtp_am824_set_midi_position - set a index of data channel for MIDI 245 * amdtp_am824_midi_trigger - start/stop playback/capture with a MIDI device 247 * @port: index of MIDI port [all …]
|
/Linux-v6.1/Documentation/sound/designs/ |
D | seq-oss.rst | 22 * Normal sequencer and MIDI events: 53 However, each MIDI device is exclusive - that is, if a MIDI device 81 At beginning, this module probes all the MIDI ports which have been 85 The available synth and MIDI devices can be found in proc interface. 101 Number of MIDI devices: 3 102 midi 0: [Emu8000 Port-0] ALSA port 65:0 105 midi 1: [Emu8000 Port-1] ALSA port 65:1 108 midi 2: [0: MPU-401 (UART)] ALSA port 64:0 127 Using MIDI Devices 130 So far, only MIDI output was tested. MIDI input was not checked at all, [all …]
|
/Linux-v6.1/sound/usb/line6/ |
D | midi.h | 21 /* MIDI substream for receiving (or NULL if not active) */ 24 /* MIDI substream for transmitting (or NULL if not active) */ 27 /* Number of currently active MIDI send URBs */ 30 /* Spin lock to protect MIDI buffer handling */ 33 /* Wait queue for MIDI transmission */ 36 /* Buffer for incoming MIDI stream */ 39 /* Buffer for outgoing MIDI stream */
|
D | driver.h | 16 #include "midi.h" 44 Line 6 MIDI control commands 53 MIDI channel for messages initiated by the host 59 MIDI channel for messages initiated by the device 107 /* device uses raw MIDI via USB (data endpoints) */ 141 * Each device has at least MIDI or PCM. 148 /* Line 6 MIDI device data structure */ 157 /* Buffer for message to be processed, generated from MIDI layer */ 160 /* Length of message to be processed, generated from MIDI layer */ 163 /* Circular buffer for non-MIDI control messages */ [all …]
|
D | midi.c | 15 #include "midi.h" 24 Pass data received via USB to MIDI. 35 Read data from MIDI buffer and transmit them via USB. 69 Notification of completion of MIDI transmission. 100 Send an asynchronous MIDI message. 176 struct snd_line6_midi *midi = line6->line6midi; in line6_midi_output_drain() local 178 wait_event_interruptible(midi->send_wait, in line6_midi_output_drain() 179 midi->num_active_send_urbs == 0); in line6_midi_output_drain() 217 /* Create a MIDI device */ 224 err = snd_rawmidi_new(line6->card, "Line 6 MIDI", 0, 1, 1, rmidi_ret); in snd_line6_new_midi() [all …]
|
/Linux-v6.1/sound/pci/echoaudio/ |
D | midi.c | 33 MIDI lowlevel code 36 /* Start and stop Midi input */ 58 /* Send a buffer full of MIDI data to the DSP 68 /* HF4 indicates that it is safe to write MIDI output data */ in write_midi() 83 /* Run the state machine for MIDI input data 84 MIDI time code sync isn't supported by this code right now, but you still need 85 this state machine to parse the incoming MIDI data stream. Every time the DSP 86 sees a 0xF1 byte come in, it adds the DSP sample position to the MIDI data 89 real MIDI bytes, the following logic is needed to skip them. */ 114 /* This function is called from the IRQ handler and it reads the midi data [all …]
|
/Linux-v6.1/sound/core/seq/ |
D | seq_midi.c | 3 * Generic MIDI synth driver for ALSA sequencer 10 - automatic opening of midi ports on first received event or subscription 29 MODULE_DESCRIPTION("Advanced Linux Sound Architecture sequencer MIDI synth."); 38 /* data for this midi synth driver */ 60 /* handle rawmidi input event (MIDI v1.0 stream) */ 107 pr_err("ALSA: seq_midi: MIDI output buffer overrun\n"); in dump_midi() 119 unsigned char msg[10]; /* buffer for constructing midi messages */ in event_process_midi() 162 /* open associated midi device for input */ 170 /* open midi port */ in midisynth_subscribe() 176 pr_debug("ALSA: seq_midi: midi input open failed!!!\n"); in midisynth_subscribe() [all …]
|
D | Makefile | 11 snd-seq-midi-objs := seq_midi.o 12 snd-seq-midi-emul-objs := seq_midi_emul.o 13 snd-seq-midi-event-objs := seq_midi_event.o 21 obj-$(CONFIG_SND_SEQ_MIDI) += snd-seq-midi.o 22 obj-$(CONFIG_SND_SEQ_MIDI_EMUL) += snd-seq-midi-emul.o 23 obj-$(CONFIG_SND_SEQ_MIDI_EVENT) += snd-seq-midi-event.o
|
/Linux-v6.1/Documentation/ABI/testing/ |
D | configfs-usb-gadget-midi | 1 What: /config/usb-gadget/gadget/functions/midi.name 8 index index value for the USB MIDI adapter 9 id ID string for the USB MIDI adapter 10 buflen MIDI buffer length 12 in_ports number of MIDI input ports 13 out_ports number of MIDI output ports
|
/Linux-v6.1/sound/firewire/tascam/ |
D | tascam-midi.c | 3 * tascam-midi.c - a part of driver for TASCAM FireWire series 98 "%s MIDI", tscm->card->shortname); in snd_tscm_create_midi_devices() 106 /* Set port names for MIDI input. */ in snd_tscm_create_midi_devices() 108 /* TODO: support virtual MIDI ports. */ in snd_tscm_create_midi_devices() 110 /* Hardware MIDI ports. */ in snd_tscm_create_midi_devices() 112 "%s MIDI %d", in snd_tscm_create_midi_devices() 122 /* Set port names for MIDI ourput. */ in snd_tscm_create_midi_devices() 125 /* Hardware MIDI ports only. */ in snd_tscm_create_midi_devices() 127 "%s MIDI %d", in snd_tscm_create_midi_devices()
|
/Linux-v6.1/sound/firewire/digi00x/ |
D | amdtp-dot.c | 19 * Nominally 3125 bytes/second, but the MIDI port's clock might be 26 * In any case, this is more than enough for the MIDI data rate. 47 struct snd_rawmidi_substream *midi[MAX_MIDI_PORTS]; member 123 * A first data channel is for MIDI messages, the rest is Multi Bit in amdtp_dot_set_parameters() 135 * We do not know the actual MIDI FIFO size of most devices. Just in amdtp_dot_set_parameters() 137 * the previous one is transmitted over MIDI. in amdtp_dot_set_parameters() 263 p->midi[port] != NULL) in write_midi_messages() 264 len = snd_rawmidi_transmit(p->midi[port], b + 1, 2); in write_midi_messages() 269 * - 0000b: physical MIDI port 1. in write_midi_messages() 270 * - 0010b: physical MIDI port 2. in write_midi_messages() [all …]
|
/Linux-v6.1/sound/usb/6fire/ |
D | midi.c | 14 #include "midi.h" 41 "midi out urb submit failed: %d\n", in usb6fire_midi_out_handler() 95 "midi out urb submit failed: %d\n", in usb6fire_midi_out_trigger() 169 rt->out_buffer[0] = 0x80; /* 'send midi' command */ in usb6fire_midi_init() 182 dev_err(&chip->dev->dev, "unable to create midi.\n"); in usb6fire_midi_init() 186 strcpy(rt->instance->name, "DMX6FireUSB MIDI"); in usb6fire_midi_init() 195 chip->midi = rt; in usb6fire_midi_init() 201 struct midi_runtime *rt = chip->midi; in usb6fire_midi_abort() 209 struct midi_runtime *rt = chip->midi; in usb6fire_midi_destroy() 213 chip->midi = NULL; in usb6fire_midi_destroy()
|
/Linux-v6.1/sound/core/seq/oss/ |
D | seq_oss_midi.c | 5 * MIDI device handlers 28 * definition of midi device record 37 struct snd_midi_event *coder; /* MIDI event coder */ 44 * midi device table 144 /* the port must include generic midi */ in snd_seq_oss_midi_check_new_port() 163 * allocate midi info record in snd_seq_oss_midi_check_new_port() 179 /* create MIDI coder */ in snd_seq_oss_midi_check_new_port() 181 pr_err("ALSA: seq_oss: can't malloc midi coder\n"); in snd_seq_oss_midi_check_new_port() 213 * release the midi device if it was registered 244 * release the midi device if it was registered [all …]
|