Home
last modified time | relevance | path

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

12

/sound/pci/ca0106/
Dca_midi.c35 #define ca_midi_write_data(midi, data) midi->write(midi, data, 0) argument
36 #define ca_midi_write_cmd(midi, data) midi->write(midi, data, 1) argument
37 #define ca_midi_read_data(midi) midi->read(midi, 0) argument
38 #define ca_midi_read_stat(midi) midi->read(midi, 1) argument
39 #define ca_midi_input_avail(midi) (!(ca_midi_read_stat(midi) & midi->input_avail)) argument
40 #define ca_midi_output_ready(midi) (!(ca_midi_read_stat(midi) & midi->output_ready)) argument
42 static void ca_midi_clear_rx(struct snd_ca_midi *midi) in ca_midi_clear_rx() argument
45 for (; timeout > 0 && ca_midi_input_avail(midi); timeout--) in ca_midi_clear_rx()
46 ca_midi_read_data(midi); in ca_midi_clear_rx()
50 ca_midi_read_stat(midi)); in ca_midi_clear_rx()
[all …]
Dca_midi.h54 void (*interrupt)(struct snd_ca_midi *midi, unsigned int status);
55 void (*interrupt_enable)(struct snd_ca_midi *midi, int intr);
56 void (*interrupt_disable)(struct snd_ca_midi *midi, int intr);
58 unsigned char (*read)(struct snd_ca_midi *midi, int idx);
59 void (*write)(struct snd_ca_midi *midi, int data, int idx);
66 int ca_midi_init(void *card, struct snd_ca_midi *midi, int device, char *name);
Dca0106_main.c1323 if (chip->midi.dev_id && in snd_ca0106_interrupt()
1324 (status & (chip->midi.ipr_tx|chip->midi.ipr_rx))) { in snd_ca0106_interrupt()
1325 if (chip->midi.interrupt) in snd_ca0106_interrupt()
1326 chip->midi.interrupt(&chip->midi, status); in snd_ca0106_interrupt()
1328 chip->midi.interrupt_disable(&chip->midi, chip->midi.tx_enable | chip->midi.rx_enable); in snd_ca0106_interrupt()
1749 static void ca0106_midi_interrupt_enable(struct snd_ca_midi *midi, int intr) in ca0106_midi_interrupt_enable() argument
1751 snd_ca0106_intr_enable((struct snd_ca0106 *)(midi->dev_id), intr); in ca0106_midi_interrupt_enable()
1754 static void ca0106_midi_interrupt_disable(struct snd_ca_midi *midi, int intr) in ca0106_midi_interrupt_disable() argument
1756 snd_ca0106_intr_disable((struct snd_ca0106 *)(midi->dev_id), intr); in ca0106_midi_interrupt_disable()
1759 static unsigned char ca0106_midi_read(struct snd_ca_midi *midi, int idx) in ca0106_midi_read() argument
[all …]
Dca0106.h708 struct snd_ca_midi midi; member
/sound/isa/wavefront/
Dwavefront_midi.c58 wf_mpu_status (snd_wavefront_midi_t *midi) in wf_mpu_status() argument
61 return inb (midi->mpu_status_port); in wf_mpu_status()
65 input_avail (snd_wavefront_midi_t *midi) in input_avail() argument
68 return !(wf_mpu_status(midi) & INPUT_AVAIL); in input_avail()
72 output_ready (snd_wavefront_midi_t *midi) in output_ready() argument
75 return !(wf_mpu_status(midi) & OUTPUT_READY); in output_ready()
79 read_data (snd_wavefront_midi_t *midi) in read_data() argument
82 return inb (midi->mpu_data_port); in read_data()
86 write_data (snd_wavefront_midi_t *midi, unsigned char byte) in write_data() argument
89 outb (byte, midi->mpu_data_port); in write_data()
[all …]
Dwavefront.c297 acard->wavefront.midi.base = port; in snd_wavefront_new_midi()
352 spin_lock_init(&acard->wavefront.midi.open); in snd_wavefront_card_new()
353 spin_lock_init(&acard->wavefront.midi.virtual); in snd_wavefront_card_new()
/sound/pci/emu10k1/
Demumpu401.c75 static void do_emu10k1_midi_interrupt(struct snd_emu10k1 *emu, struct snd_emu10k1_midi *midi, unsig… in do_emu10k1_midi_interrupt() argument
79 if (midi->rmidi == NULL) { in do_emu10k1_midi_interrupt()
80 snd_emu10k1_intr_disable(emu, midi->tx_enable | midi->rx_enable); in do_emu10k1_midi_interrupt()
84 spin_lock(&midi->input_lock); in do_emu10k1_midi_interrupt()
85 if ((status & midi->ipr_rx) && mpu401_input_avail(emu, midi)) { in do_emu10k1_midi_interrupt()
86 if (!(midi->midi_mode & EMU10K1_MIDI_MODE_INPUT)) { in do_emu10k1_midi_interrupt()
87 mpu401_clear_rx(emu, midi); in do_emu10k1_midi_interrupt()
89 byte = mpu401_read_data(emu, midi); in do_emu10k1_midi_interrupt()
90 if (midi->substream_input) in do_emu10k1_midi_interrupt()
91 snd_rawmidi_receive(midi->substream_input, &byte, 1); in do_emu10k1_midi_interrupt()
[all …]
Demu10k1x.c253 struct emu10k1x_midi midi; member
820 if (chip->midi.interrupt) in snd_emu10k1x_interrupt()
821 chip->midi.interrupt(chip, status); in snd_emu10k1x_interrupt()
1260 struct emu10k1x_midi *midi, unsigned int status) in do_emu10k1x_midi_interrupt() argument
1264 if (midi->rmidi == NULL) { in do_emu10k1x_midi_interrupt()
1265 snd_emu10k1x_intr_disable(emu, midi->tx_enable | midi->rx_enable); in do_emu10k1x_midi_interrupt()
1269 spin_lock(&midi->input_lock); in do_emu10k1x_midi_interrupt()
1270 if ((status & midi->ipr_rx) && mpu401_input_avail(emu, midi)) { in do_emu10k1x_midi_interrupt()
1271 if (!(midi->midi_mode & EMU10K1X_MIDI_MODE_INPUT)) { in do_emu10k1x_midi_interrupt()
1272 mpu401_clear_rx(emu, midi); in do_emu10k1x_midi_interrupt()
[all …]
Dvoice.c104 voice->midi = 1; in voice_alloc()
138 pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = pvoice->efx = 0; in snd_emu10k1_voice_alloc()
161 pvoice->use = pvoice->pcm = pvoice->synth = pvoice->midi = pvoice->efx = 0; in snd_emu10k1_voice_free()
Dirq.c120 if (emu->midi.interrupt) in snd_emu10k1_interrupt()
121 emu->midi.interrupt(emu, status); in snd_emu10k1_interrupt()
/sound/core/seq/
DMakefile10 snd-seq-midi-objs := seq_midi.o
11 snd-seq-midi-emul-objs := seq_midi_emul.o
12 snd-seq-midi-event-objs := seq_midi_event.o
18 obj-$(CONFIG_SND_SEQUENCER) += snd-seq-midi-event.o
24 obj-$(CONFIG_SND_VIRMIDI) += snd-seq-virmidi.o snd-seq-midi-event.o
25 obj-$(CONFIG_SND_RAWMIDI_SEQ) += snd-seq-midi.o snd-seq-midi-event.o
26 obj-$(CONFIG_SND_OPL3_LIB_SEQ) += snd-seq-midi-event.o snd-seq-midi-emul.o
27 obj-$(CONFIG_SND_OPL4_LIB_SEQ) += snd-seq-midi-event.o snd-seq-midi-emul.o
28 obj-$(CONFIG_SND_SBAWE_SEQ) += snd-seq-midi-emul.o snd-seq-virmidi.o
29 obj-$(CONFIG_SND_EMU10K1_SEQ) += snd-seq-midi-emul.o snd-seq-virmidi.o
/sound/pci/rme9652/
Dhdspm.c880 struct hdspm_midi midi[4]; member
1642 return hdspm_read(hdspm, hdspm->midi[id].dataIn); in snd_hdspm_midi_read_byte()
1649 return hdspm_write(hdspm, hdspm->midi[id].dataOut, val); in snd_hdspm_midi_write_byte()
1654 return hdspm_read(hdspm, hdspm->midi[id].statusIn) & 0xFF; in snd_hdspm_midi_input_available()
1661 fifo_bytes_used = hdspm_read(hdspm, hdspm->midi[id].statusOut) & 0xFF; in snd_hdspm_midi_output_possible()
1893 hdspm->midi[id].id = id; in snd_hdspm_create_midi()
1894 hdspm->midi[id].hdspm = hdspm; in snd_hdspm_create_midi()
1895 spin_lock_init (&hdspm->midi[id].lock); in snd_hdspm_create_midi()
1900 hdspm->midi[0].dataIn = HDSPM_midiDataIn2; in snd_hdspm_create_midi()
1901 hdspm->midi[0].statusIn = HDSPM_midiStatusIn2; in snd_hdspm_create_midi()
[all …]
Dhdsp.c462 struct hdsp_midi midi[2]; member
1531 hdsp->midi[id].id = id; in snd_hdsp_create_midi()
1532 hdsp->midi[id].rmidi = NULL; in snd_hdsp_create_midi()
1533 hdsp->midi[id].input = NULL; in snd_hdsp_create_midi()
1534 hdsp->midi[id].output = NULL; in snd_hdsp_create_midi()
1535 hdsp->midi[id].hdsp = hdsp; in snd_hdsp_create_midi()
1536 hdsp->midi[id].istimer = 0; in snd_hdsp_create_midi()
1537 hdsp->midi[id].pending = 0; in snd_hdsp_create_midi()
1538 spin_lock_init (&hdsp->midi[id].lock); in snd_hdsp_create_midi()
1541 if (snd_rawmidi_new (card, buf, id, 1, 1, &hdsp->midi[id].rmidi) < 0) in snd_hdsp_create_midi()
[all …]
/sound/usb/6fire/
Dmidi.c186 chip->midi = rt; in usb6fire_midi_init()
192 struct midi_runtime *rt = chip->midi; in usb6fire_midi_abort()
200 kfree(chip->midi); in usb6fire_midi_destroy()
201 chip->midi = NULL; in usb6fire_midi_destroy()
Dchip.h25 struct midi_runtime *midi; member
Dchip.c55 if (chip->midi) in usb6fire_chip_abort()
74 if (chip->midi) in usb6fire_chip_destroy()
DMakefile1 snd-usb-6fire-objs += chip.o comm.o midi.o control.o firmware.o pcm.o
Dcomm.c40 struct midi_runtime *midi_rt = rt->chip->midi; in usb6fire_comm_receiver_handler()
/sound/drivers/
Dvirmidi.c80 struct snd_rawmidi *midi[MAX_MIDI_DEVICES]; member
112 vmidi->midi[idx] = rmidi; in snd_virmidi_probe()
/sound/usb/caiaq/
DMakefile1 snd-usb-caiaq-y := device.o audio.o midi.o control.o
/sound/usb/
DMakefile17 snd-usbmidi-lib-objs := midi.o
/sound/isa/gus/
Dinterwave.c71 static int midi[SNDRV_CARDS]; variable
109 module_param_array(midi, int, NULL, 0444);
110 MODULE_PARM_DESC(midi, "MIDI UART enable for InterWave driver.");
748 gus->uart_enable = midi[dev]; in snd_interwave_probe()
Dgus_reset.c250 pvoice->midi = 1; in snd_gf1_alloc_voice_use()
280 if (pvoice->midi && !pvoice->client) { in snd_gf1_alloc_voice()
/sound/pci/oxygen/
Doxygen_lib.c118 if (chip->midi) in oxygen_interrupt()
119 snd_mpu401_uart_interrupt(0, chip->midi->private_data); in oxygen_interrupt()
690 info_flags, -1, &chip->midi); in oxygen_pci_probe()
/sound/pci/trident/
Dtrident.h280 midi: 1; member

12