Home
last modified time | relevance | path

Searched refs:midi (Results 1 – 25 of 84) sorted by relevance

1234

/openbmc/linux/sound/pci/ca0106/
H A Dca_midi.c21 #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
44 midi->interrupt_disable(midi,midi->tx_enable | midi->rx_enable); in ca_midi_interrupt()
68 midi->interrupt_disable(midi,midi->tx_enable); in ca_midi_interrupt()
156 midi->interrupt_disable(midi,midi->rx_enable); in ca_midi_input_close()
178 midi->interrupt_disable(midi,midi->tx_enable); in ca_midi_output_close()
199 midi->interrupt_enable(midi,midi->rx_enable); in ca_midi_input_trigger()
201 midi->interrupt_disable(midi, midi->rx_enable); in ca_midi_input_trigger()
236 midi->interrupt_enable(midi,midi->tx_enable); in ca_midi_output_trigger()
[all …]
H A Dca_midi.h40 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);
H A Dca0106_main.c1249 if (chip->midi.dev_id && in snd_ca0106_interrupt()
1250 (status & (chip->midi.ipr_tx|chip->midi.ipr_rx))) { in snd_ca0106_interrupt()
1251 if (chip->midi.interrupt) in snd_ca0106_interrupt()
1252 chip->midi.interrupt(&chip->midi, status); in snd_ca0106_interrupt()
1254 chip->midi.interrupt_disable(&chip->midi, chip->midi.tx_enable | chip->midi.rx_enable); in snd_ca0106_interrupt()
1663 snd_ca0106_ptr_write((struct snd_ca0106 *)(midi->dev_id), midi->port + idx, 0, data); in ca0106_midi_write()
1678 struct snd_ca_midi *midi; in snd_ca0106_midi() local
1684 midi = &chip->midi2; in snd_ca0106_midi()
1692 midi = &chip->midi; in snd_ca0106_midi()
1707 midi->channel = channel; in snd_ca0106_midi()
[all …]
/openbmc/linux/sound/isa/wavefront/
H A Dwavefront_midi.c114 snd_wavefront_midi_t *midi = &card->wavefront.midi; in snd_wavefront_midi_output_write() local
132 if (midi->substream_output[midi->output_mpu] == NULL) { in snd_wavefront_midi_output_write()
175 if (midi->substream_output[!midi->output_mpu] == NULL) { in snd_wavefront_midi_output_write()
243 if (!midi) in snd_wavefront_midi_input_open()
268 if (!midi) in snd_wavefront_midi_output_open()
293 if (!midi) in snd_wavefront_midi_input_close()
317 if (!midi) in snd_wavefront_midi_output_close()
341 if (!midi) in snd_wavefront_midi_input_trigger()
380 if (!midi) in snd_wavefront_midi_output_trigger()
415 midi = &card->wavefront.midi; in snd_wavefront_midi_interrupt()
[all …]
/openbmc/linux/sound/pci/emu10k1/
H A Demumpu401.c67 snd_emu10k1_intr_disable(emu, midi->tx_enable | midi->rx_enable); in do_emu10k1_midi_interrupt()
72 if ((status & midi->ipr_rx) && mpu401_input_avail(emu, midi)) { in do_emu10k1_midi_interrupt()
84 if ((status & midi->ipr_tx) && mpu401_output_ready(emu, midi)) { in do_emu10k1_midi_interrupt()
145 emu = midi->emu; in snd_emu10k1_midi_input_open()
171 emu = midi->emu; in snd_emu10k1_midi_output_open()
198 emu = midi->emu; in snd_emu10k1_midi_input_close()
220 emu = midi->emu; in snd_emu10k1_midi_output_close()
240 emu = midi->emu; in snd_emu10k1_midi_input_trigger()
255 emu = midi->emu; in snd_emu10k1_midi_output_trigger()
337 struct snd_emu10k1_midi *midi = &emu->midi; in snd_emu10k1_midi() local
[all …]
H A Demu10k1x.c1204 snd_emu10k1x_intr_disable(emu, midi->tx_enable | midi->rx_enable); in do_emu10k1x_midi_interrupt()
1209 if ((status & midi->ipr_rx) && mpu401_input_avail(emu, midi)) { in do_emu10k1x_midi_interrupt()
1221 if ((status & midi->ipr_tx) && mpu401_output_ready(emu, midi)) { in do_emu10k1x_midi_interrupt()
1280 emu = midi->emu; in snd_emu10k1x_midi_input_open()
1307 emu = midi->emu; in snd_emu10k1x_midi_output_open()
1335 emu = midi->emu; in snd_emu10k1x_midi_input_close()
1358 emu = midi->emu; in snd_emu10k1x_midi_output_close()
1378 emu = midi->emu; in snd_emu10k1x_midi_input_trigger()
1394 emu = midi->emu; in snd_emu10k1x_midi_output_trigger()
1460 midi->emu = emu; in emu10k1x_midi_init()
[all …]
/openbmc/linux/drivers/usb/gadget/function/
H A Df_midi.c373 err = f_midi_start_ep(midi, f, midi->in_ep); in f_midi_set_alt()
377 err = f_midi_start_ep(midi, f, midi->out_ep); in f_midi_set_alt()
384 midi_alloc_ep_req(midi->in_ep, midi->buflen); in f_midi_set_alt()
398 midi_alloc_ep_req(midi->out_ep, midi->buflen); in f_midi_set_alt()
632 for (i = midi->in_last_port; i < midi->in_ports; ++i) { in f_midi_do_transmit()
807 err = snd_card_new(&midi->gadget->dev, midi->index, midi->id, in f_midi_register_card()
828 midi->out_ports, midi->in_ports, &rmidi); in f_midi_register_card()
939 + (midi->in_ports + midi->out_ports) * in f_midi_bind()
1348 if (!midi) { in f_midi_alloc()
1389 if (midi) in f_midi_alloc()
[all …]
/openbmc/linux/sound/core/seq/
H A DMakefile12 snd-seq-midi-objs := seq_midi.o
13 snd-seq-midi-emul-objs := seq_midi_emul.o
14 snd-seq-midi-event-objs := seq_midi_event.o
23 obj-$(CONFIG_SND_SEQ_MIDI) += snd-seq-midi.o
25 obj-$(CONFIG_SND_SEQ_MIDI_EMUL) += snd-seq-midi-emul.o
26 obj-$(CONFIG_SND_SEQ_MIDI_EVENT) += snd-seq-midi-event.o
/openbmc/linux/Documentation/devicetree/bindings/sound/
H A Dserial-midi.yaml5 $id: http://devicetree.org/schemas/sound/serial-midi.yaml#
27 const: serial-midi
41 midi {
42 compatible = "serial-midi";
47 midi {
48 compatible = "serial-midi";
/openbmc/linux/Documentation/ABI/testing/
H A Dsysfs-driver-hid-prodikeys6 Allows control (via software) the midi channel to which
7 that the pc-midi keyboard will output.midi data.
16 note held by the pc-midi driver.
25 Controls the octave shift modifier in the pc-midi driver.
/openbmc/linux/sound/firewire/motu/
H A Damdtp-motu.c37 struct snd_rawmidi_substream *midi; member
203 struct snd_rawmidi_substream *midi) in amdtp_motu_midi_trigger() argument
208 WRITE_ONCE(p->midi, midi); in amdtp_motu_midi_trigger()
215 struct snd_rawmidi_substream *midi = READ_ONCE(p->midi); in write_midi_messages() local
222 if (midi && p->midi_db_count == 0 && in write_midi_messages()
223 snd_rawmidi_transmit(midi, b + p->midi_byte_offset, 1) == 1) { in write_midi_messages()
241 struct snd_rawmidi_substream *midi; in read_midi_messages() local
247 midi = READ_ONCE(p->midi); in read_midi_messages()
249 if (midi && (b[p->midi_flag_offset] & 0x01)) in read_midi_messages()
250 snd_rawmidi_receive(midi, b + p->midi_byte_offset, 1); in read_midi_messages()
/openbmc/linux/sound/firewire/digi00x/
H A Damdtp-dot.c47 struct snd_rawmidi_substream *midi[MAX_MIDI_PORTS]; member
263 p->midi[port] != NULL) in write_midi_messages()
264 len = snd_rawmidi_transmit(p->midi[port], b + 1, 2); in write_midi_messages()
314 if (port < MAX_MIDI_PORTS && p->midi[port]) in read_midi_messages()
315 snd_rawmidi_receive(p->midi[port], b + 1, len); in read_midi_messages()
336 struct snd_rawmidi_substream *midi) in amdtp_dot_midi_trigger() argument
341 WRITE_ONCE(p->midi[port], midi); in amdtp_dot_midi_trigger()
H A DMakefile4 digi00x-transaction.o digi00x-midi.o digi00x.o
/openbmc/linux/sound/firewire/
H A Damdtp-am824.c31 struct snd_rawmidi_substream *midi[AM824_MAX_CHANNELS_FOR_MIDI * 8]; member
253 struct snd_rawmidi_substream *midi) in amdtp_am824_midi_trigger() argument
258 WRITE_ONCE(p->midi[port], midi); in amdtp_am824_midi_trigger()
308 p->midi[port] != NULL && in write_midi_messages()
309 snd_rawmidi_transmit(p->midi[port], &b[1], 1) == 1) { in write_midi_messages()
340 if ((1 <= len) && (len <= 3) && (p->midi[port])) in read_midi_messages()
341 snd_rawmidi_receive(p->midi[port], b + 1, len); in read_midi_messages()
/openbmc/linux/sound/pci/rme9652/
H A Dhdspm.c998 struct hdspm_midi midi[4]; member
2061 hdspm->midi[id].id = id; in snd_hdspm_create_midi()
2101 hdspm->midi[2].dataOut = -1; in snd_hdspm_create_midi()
2109 hdspm->midi[3].dataOut = -1; in snd_hdspm_create_midi()
2128 &hdspm->midi[id].rmidi); in snd_hdspm_create_midi()
2135 hdspm->midi[id].rmidi->private_data = &hdspm->midi[id]; in snd_hdspm_create_midi()
2153 &hdspm->midi[id].rmidi); in snd_hdspm_create_midi()
2160 hdspm->midi[id].rmidi->private_data = &hdspm->midi[id]; in snd_hdspm_create_midi()
2179 if (hdspm->midi[i].pending) in hdspm_midi_work()
5410 if (!audio && !midi) in snd_hdspm_interrupt()
[all …]
/openbmc/linux/sound/usb/6fire/
H A Dmidi.c195 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()
H A Dchip.h21 struct midi_runtime *midi; member
H A DMakefile2 snd-usb-6fire-objs += chip.o comm.o midi.o control.o firmware.o pcm.o
/openbmc/linux/sound/firewire/bebob/
H A Dbebob_stream.c257 unsigned int pcm, midi, location; in map_data_channels() local
289 midi = 0; in map_data_channels()
336 if ((midi > 0) && (stm_pos != midi)) { in map_data_channels()
341 midi = stm_pos; in map_data_channels()
369 midi += channels; in map_data_channels()
742 formation[i].midi += channels; in parse_stream_formation()
768 formation[i].midi > AM824_MAX_CHANNELS_FOR_MIDI) in parse_stream_formation()
834 if (formats[i].midi > 0) in detect_midi_ports()
/openbmc/linux/sound/firewire/oxfw/
H A Doxfw-proc.c43 formation.rate, formation.pcm, formation.midi); in proc_read_formation()
73 formation.rate, formation.pcm, formation.midi); in proc_read_formation()
H A Doxfw-stream.c233 fmt.midi == formation.midi) in keep_resources()
244 formation.midi * 8, false); in keep_resources()
556 formation->midi = channels; in snd_oxfw_stream_parse_format()
588 formation->midi > AM824_MAX_CHANNELS_FOR_MIDI) in snd_oxfw_stream_parse_format()
770 if (formation.midi > 0) in snd_oxfw_stream_discover()
798 if (formation.midi > 0) in snd_oxfw_stream_discover()
/openbmc/linux/sound/drivers/
H A Dvirmidi.c65 struct snd_rawmidi *midi[MAX_MIDI_DEVICES]; member
97 vmidi->midi[idx] = rmidi; in snd_virmidi_probe()
/openbmc/linux/sound/usb/line6/
H A Dmidi.c178 struct snd_line6_midi *midi = line6->line6midi; in line6_midi_output_drain() local
180 wait_event_interruptible(midi->send_wait, in line6_midi_output_drain()
181 midi->num_active_send_urbs == 0); in line6_midi_output_drain()
/openbmc/linux/sound/usb/caiaq/
H A DMakefile2 snd-usb-caiaq-y := device.o audio.o midi.o control.o
/openbmc/linux/Documentation/sound/designs/
H A Dindex.rst18 midi-2.0

1234