/sound/pci/ca0106/ |
D | ca_midi.c | 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() 35 ca_midi_read_stat(midi)); in ca_midi_clear_rx() [all …]
|
D | ca_midi.h | 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);
|
D | ca0106_main.c | 1317 if (chip->midi.dev_id && in snd_ca0106_interrupt() 1318 (status & (chip->midi.ipr_tx|chip->midi.ipr_rx))) { in snd_ca0106_interrupt() 1319 if (chip->midi.interrupt) in snd_ca0106_interrupt() 1320 chip->midi.interrupt(&chip->midi, status); in snd_ca0106_interrupt() 1322 chip->midi.interrupt_disable(&chip->midi, chip->midi.tx_enable | chip->midi.rx_enable); in snd_ca0106_interrupt() 1739 static void ca0106_midi_interrupt_enable(struct snd_ca_midi *midi, int intr) in ca0106_midi_interrupt_enable() argument 1741 snd_ca0106_intr_enable((struct snd_ca0106 *)(midi->dev_id), intr); in ca0106_midi_interrupt_enable() 1744 static void ca0106_midi_interrupt_disable(struct snd_ca_midi *midi, int intr) in ca0106_midi_interrupt_disable() argument 1746 snd_ca0106_intr_disable((struct snd_ca0106 *)(midi->dev_id), intr); in ca0106_midi_interrupt_disable() 1749 static unsigned char ca0106_midi_read(struct snd_ca_midi *midi, int idx) in ca0106_midi_read() argument [all …]
|
/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 | 239 struct emu10k1x_midi midi; member 811 if (chip->midi.interrupt) in snd_emu10k1x_interrupt() 812 chip->midi.interrupt(chip, status); in snd_emu10k1x_interrupt() 1238 struct emu10k1x_midi *midi, unsigned int status) in do_emu10k1x_midi_interrupt() argument 1242 if (midi->rmidi == NULL) { in do_emu10k1x_midi_interrupt() 1243 snd_emu10k1x_intr_disable(emu, midi->tx_enable | midi->rx_enable); in do_emu10k1x_midi_interrupt() 1247 spin_lock(&midi->input_lock); in do_emu10k1x_midi_interrupt() 1248 if ((status & midi->ipr_rx) && mpu401_input_avail(emu, midi)) { in do_emu10k1x_midi_interrupt() 1249 if (!(midi->midi_mode & EMU10K1X_MIDI_MODE_INPUT)) { in do_emu10k1x_midi_interrupt() 1250 mpu401_clear_rx(emu, midi); in do_emu10k1x_midi_interrupt() [all …]
|
D | voice.c | 90 voice->midi = 1; in voice_alloc() 124 pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = pvoice->efx = 0; in snd_emu10k1_voice_alloc() 147 pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = pvoice->efx = 0; in snd_emu10k1_voice_free()
|
/sound/isa/wavefront/ |
D | wavefront_midi.c | 55 wf_mpu_status (snd_wavefront_midi_t *midi) in wf_mpu_status() argument 58 return inb (midi->mpu_status_port); in wf_mpu_status() 62 input_avail (snd_wavefront_midi_t *midi) in input_avail() argument 65 return !(wf_mpu_status(midi) & INPUT_AVAIL); in input_avail() 69 output_ready (snd_wavefront_midi_t *midi) in output_ready() argument 72 return !(wf_mpu_status(midi) & OUTPUT_READY); in output_ready() 76 read_data (snd_wavefront_midi_t *midi) in read_data() argument 79 return inb (midi->mpu_data_port); in read_data() 83 write_data (snd_wavefront_midi_t *midi, unsigned char byte) in write_data() argument 86 outb (byte, midi->mpu_data_port); in write_data() [all …]
|
/sound/core/seq/ |
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
|
/sound/firewire/motu/ |
D | amdtp-motu.c | 37 struct snd_rawmidi_substream *midi; member 230 struct snd_rawmidi_substream *midi) in amdtp_motu_midi_trigger() argument 235 WRITE_ONCE(p->midi, midi); in amdtp_motu_midi_trigger() 242 struct snd_rawmidi_substream *midi = READ_ONCE(p->midi); in write_midi_messages() local 249 if (midi && p->midi_db_count == 0 && in write_midi_messages() 250 snd_rawmidi_transmit(midi, b + p->midi_byte_offset, 1) == 1) { in write_midi_messages() 268 struct snd_rawmidi_substream *midi; in read_midi_messages() local 274 midi = READ_ONCE(p->midi); in read_midi_messages() 276 if (midi && (b[p->midi_flag_offset] & 0x01)) in read_midi_messages() 277 snd_rawmidi_receive(midi, b + p->midi_byte_offset, 1); in read_midi_messages()
|
/sound/firewire/digi00x/ |
D | amdtp-dot.c | 47 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()
|
D | Makefile | 4 digi00x-transaction.o digi00x-midi.o digi00x.o
|
/sound/firewire/ |
D | amdtp-am824.c | 31 struct snd_rawmidi_substream *midi[AM824_MAX_CHANNELS_FOR_MIDI * 8]; member 254 struct snd_rawmidi_substream *midi) in amdtp_am824_midi_trigger() argument 259 WRITE_ONCE(p->midi[port], midi); in amdtp_am824_midi_trigger() 309 p->midi[port] != NULL && in write_midi_messages() 310 snd_rawmidi_transmit(p->midi[port], &b[1], 1) == 1) { in write_midi_messages() 341 if ((1 <= len) && (len <= 3) && (p->midi[port])) in read_midi_messages() 342 snd_rawmidi_receive(p->midi[port], b + 1, len); in read_midi_messages()
|
/sound/pci/rme9652/ |
D | hdspm.c | 999 struct hdspm_midi midi[4]; member 1809 return hdspm_read(hdspm, hdspm->midi[id].dataIn); in snd_hdspm_midi_read_byte() 1816 return hdspm_write(hdspm, hdspm->midi[id].dataOut, val); in snd_hdspm_midi_write_byte() 1821 return hdspm_read(hdspm, hdspm->midi[id].statusIn) & 0xFF; in snd_hdspm_midi_input_available() 1828 fifo_bytes_used = hdspm_read(hdspm, hdspm->midi[id].statusOut) & 0xFF; in snd_hdspm_midi_output_possible() 2056 hdspm->midi[id].id = id; in snd_hdspm_create_midi() 2057 hdspm->midi[id].hdspm = hdspm; in snd_hdspm_create_midi() 2058 spin_lock_init (&hdspm->midi[id].lock); in snd_hdspm_create_midi() 2063 hdspm->midi[0].dataIn = HDSPM_midiDataIn2; in snd_hdspm_create_midi() 2064 hdspm->midi[0].statusIn = HDSPM_midiStatusIn2; in snd_hdspm_create_midi() [all …]
|
D | hdsp.c | 449 struct hdsp_midi midi[2]; member 1514 hdsp->midi[id].id = id; in snd_hdsp_create_midi() 1515 hdsp->midi[id].rmidi = NULL; in snd_hdsp_create_midi() 1516 hdsp->midi[id].input = NULL; in snd_hdsp_create_midi() 1517 hdsp->midi[id].output = NULL; in snd_hdsp_create_midi() 1518 hdsp->midi[id].hdsp = hdsp; in snd_hdsp_create_midi() 1519 hdsp->midi[id].istimer = 0; in snd_hdsp_create_midi() 1520 hdsp->midi[id].pending = 0; in snd_hdsp_create_midi() 1521 spin_lock_init (&hdsp->midi[id].lock); in snd_hdsp_create_midi() 1524 if (snd_rawmidi_new (card, buf, id, 1, 1, &hdsp->midi[id].rmidi) < 0) in snd_hdsp_create_midi() [all …]
|
/sound/usb/6fire/ |
D | midi.c | 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()
|
D | chip.c | 51 if (chip->midi) in usb6fire_chip_abort() 70 if (chip->midi) in usb6fire_chip_destroy()
|
D | chip.h | 21 struct midi_runtime *midi; member
|
D | Makefile | 2 snd-usb-6fire-objs += chip.o comm.o midi.o control.o firmware.o pcm.o
|
/sound/firewire/bebob/ |
D | bebob_stream.c | 258 unsigned int pcm, midi, location; in map_data_channels() local 290 midi = 0; in map_data_channels() 337 if ((midi > 0) && (stm_pos != midi)) { in map_data_channels() 342 midi = stm_pos; in map_data_channels() 370 midi += channels; in map_data_channels() 550 formation->midi, false); in keep_resources() 750 formation[i].midi += channels; in parse_stream_formation() 776 formation[i].midi > AM824_MAX_CHANNELS_FOR_MIDI) in parse_stream_formation()
|
/sound/firewire/oxfw/ |
D | oxfw-stream.c | 227 fmt.midi == formation.midi) in keep_resources() 238 formation.midi * 8, false); in keep_resources() 530 formation->midi = channels; in snd_oxfw_stream_parse_format() 562 formation->midi > AM824_MAX_CHANNELS_FOR_MIDI) in snd_oxfw_stream_parse_format() 739 if (formation.midi > 0) in snd_oxfw_stream_discover() 761 if (formation.midi > 0) in snd_oxfw_stream_discover()
|
D | oxfw-proc.c | 43 formation.rate, formation.pcm, formation.midi); in proc_read_formation() 73 formation.rate, formation.pcm, formation.midi); in proc_read_formation()
|
D | Makefile | 3 oxfw-midi.o oxfw-hwdep.o oxfw-spkr.o oxfw-scs1x.o oxfw.o
|
/sound/usb/line6/ |
D | midi.c | 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()
|
/sound/drivers/ |
D | virmidi.c | 66 struct snd_rawmidi *midi[MAX_MIDI_DEVICES]; member 100 vmidi->midi[idx] = rmidi; in snd_virmidi_probe()
|
/sound/usb/caiaq/ |
D | Makefile | 2 snd-usb-caiaq-y := device.o audio.o midi.o control.o
|