Home
last modified time | relevance | path

Searched refs:midi_devs (Results 1 – 16 of 16) sorted by relevance

/linux-4.4.14/sound/oss/
Dsb_midi.c36 sb_devc *devc = midi_devs[dev]->devc; in sb_midi_open()
73 sb_devc *devc = midi_devs[dev]->devc; in sb_midi_close()
89 sb_devc *devc = midi_devs[dev]->devc; in sb_midi_out()
112 sb_devc *devc = midi_devs[dev]->devc; in sb_midi_end_read()
177 midi_devs[dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); in sb_dsp_midi_init()
178 if (midi_devs[dev] == NULL) in sb_dsp_midi_init()
184 memcpy((char *) midi_devs[dev], (char *) &sb_midi_operations, in sb_dsp_midi_init()
188 midi_devs[dev]->owner = owner; in sb_dsp_midi_init()
190 midi_devs[dev]->devc = devc; in sb_dsp_midi_init()
193 midi_devs[dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); in sb_dsp_midi_init()
[all …]
Dv_midi.c48 vmidi_devc *devc = midi_devs[dev]->devc; in v_midi_open()
76 vmidi_devc *devc = midi_devs[dev]->devc; in v_midi_close()
91 vmidi_devc *devc = midi_devs[dev]->devc; in v_midi_out()
97 pdevc = midi_devs[devc->pair_mididev]->devc; in v_midi_out()
113 vmidi_devc *devc = midi_devs[dev]->devc; in v_midi_end_read()
197 midi_devs[midi1] = &m->m_ops[0]; in attach_v_midi()
209 midi_devs[midi2] = &m->m_ops[1]; in attach_v_midi()
215 memcpy ((char *) midi_devs[midi1], (char *) &v_midi_operations, in attach_v_midi()
225 midi_devs[midi1]->devc = v_devc[0]; in attach_v_midi()
227 midi_devs[midi1]->converter = &m->s_ops[0]; in attach_v_midi()
[all …]
Dmidibuf.c88 if (midi_devs[dev]->buffer_status != NULL) in drain_midi_queue()
90 !midi_devs[dev]->buffer_status(dev), HZ/10); in drain_midi_queue()
127 if (midi_devs[dev] != NULL && midi_out_buf[dev] != NULL) in midi_poll()
135 ok = midi_devs[dev]->outputc(dev, c); in midi_poll()
167 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in MIDIbuf_open()
173 module_put(midi_devs[dev]->owner); in MIDIbuf_open()
175 if ((err = midi_devs[dev]->open(dev, mode, in MIDIbuf_open()
185 midi_devs[dev]->close(dev); in MIDIbuf_open()
195 midi_devs[dev]->close(dev); in MIDIbuf_open()
221 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in MIDIbuf_release()
[all …]
Duart401.c121 midi_devs[dev]->devc; in uart401_open()
142 midi_devs[dev]->devc; in uart401_close()
153 midi_devs[dev]->devc; in uart401_out()
350 midi_devs[devc->my_dev] = kmemdup(&uart401_operations, in probe_uart401()
353 if (!midi_devs[devc->my_dev]) { in probe_uart401()
359 midi_devs[devc->my_dev]->owner = owner; in probe_uart401()
361 midi_devs[devc->my_dev]->devc = devc; in probe_uart401()
362 midi_devs[devc->my_dev]->converter = kmemdup(&std_midi_synth, in probe_uart401()
366 if (!midi_devs[devc->my_dev]->converter) { in probe_uart401()
370 strcpy(midi_devs[devc->my_dev]->info.name, name); in probe_uart401()
[all …]
Dmidi_synth.c95 if (midi_devs[midi_dev]->outputc(midi_dev, (unsigned char) (data & 0xff))) in midi_outc()
117 if ((char *) midi_devs[midi_dev]->prefix_cmd == NULL) in prefix_cmd()
120 return midi_devs[midi_dev]->prefix_cmd(midi_dev, status); in prefix_cmd()
142 if (orig_dev < 0 || orig_dev > num_midis || midi_devs[orig_dev] == NULL) in midi_synth_input()
149 inc = &midi_devs[orig_dev]->in_info; in midi_synth_input()
245 while (!midi_devs[orig_dev]->outputc(orig_dev, 0xf7) && in leave_sysex()
429 if (orig_dev < 0 || orig_dev >= num_midis || midi_devs[orig_dev] == NULL) in midi_synth_open()
436 if ((err = midi_devs[orig_dev]->open(orig_dev, mode, in midi_synth_open()
439 inc = &midi_devs[orig_dev]->in_info; in midi_synth_open()
465 midi_devs[orig_dev]->outputc(orig_dev, 0xfe); in midi_synth_close()
[all …]
Dsequencer.c288 if (dev >= max_mididev || midi_devs[dev]==NULL) in sequencer_write()
295 if ((err = midi_devs[dev]->open(dev, mode, in sequencer_write()
807 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in play_event()
810 if (!midi_devs[dev]->outputc(dev, q[1])) in play_event()
916 if (midi_devs[dev] && midi_devs[dev]->converter != NULL) in setup_mode2()
918 synth_devs[max_synthdev++] = midi_devs[dev]->converter; in setup_mode2()
1066 if (!midi_opened[i] && midi_devs[i]) in sequencer_open()
1068 if (!try_module_get(midi_devs[i]->owner)) in sequencer_open()
1071 if ((retval = midi_devs[i]->open(i, mode, in sequencer_open()
1107 if (midi_devs[i]->buffer_status != NULL) in seq_drain_midi_queues()
[all …]
Ddev_table.c35 struct midi_operations *midi_devs[MAX_MIDI_DEV]; variable
36 EXPORT_SYMBOL(midi_devs);
237 midi_devs[dev] = NULL; in sound_unload_mididev()
Dmpu401.c468 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in mpu401_open()
492 if ( (coprocessor = midi_devs[dev]->coproc) != NULL ) in mpu401_open()
532 coprocessor = midi_devs[dev]->coproc; in mpu401_close()
773 if (midi_dev < 0 || midi_dev >= num_midis || midi_devs[midi_dev] == NULL) in mpu_synth_ioctl()
803 if (midi_dev < 0 || midi_dev > num_midis || midi_devs[midi_dev] == NULL) in mpu_synth_open()
831 coprocessor = midi_devs[midi_dev]->coproc; in mpu_synth_open()
868 coprocessor = midi_devs[midi_dev]->coproc; in mpu_synth_close()
1094 midi_devs[m] = &mpu401_midi_operations[devc->devno]; in attach_mpu401()
1097 midi_devs[m]->owner = owner; in attach_mpu401()
Dpas2_midi.c220 midi_devs[dev] = &pas_midi_operations; in pas_midi_init()
Duart6850.c279 midi_devs[my_dev] = &uart6850_operations; in attach_uart6850()
Ddev_table.h363 extern struct midi_operations *midi_devs[MAX_MIDI_DEV];
Dsb_common.c1265 last_sb->midi_irq_cookie=midi_devs[hw_config->slots[4]]->devc; in probe_sbmpu()
Dpss.c786 midi_devs[hw_config->slots[1]]->coproc = &pss_coproc_operations; in probe_pss_mpu()
/linux-4.4.14/sound/drivers/
Dvirmidi.c55 #undef midi_devs
67 static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; variable
75 module_param_array(midi_devs, int, NULL, 0444);
76 MODULE_PARM_DESC(midi_devs, "MIDI devices # (1-4)");
100 if (midi_devs[dev] > MAX_MIDI_DEVICES) { in snd_virmidi_probe()
104 midi_devs[dev] = MAX_MIDI_DEVICES; in snd_virmidi_probe()
106 for (idx = 0; idx < midi_devs[dev]; idx++) { in snd_virmidi_probe()
/linux-4.4.14/sound/core/seq/oss/
Dseq_oss_midi.c59 static struct seq_oss_midi *midi_devs[SNDRV_SEQ_OSS_MAX_MIDI_DEVS]; variable
112 mdev = midi_devs[dev]; in get_mdev()
131 mdev = midi_devs[i]; in find_slot()
204 if (midi_devs[i] == NULL) in snd_seq_oss_midi_check_new_port()
217 midi_devs[mdev->seq_device] = mdev; in snd_seq_oss_midi_check_new_port()
235 midi_devs[mdev->seq_device] = NULL; in snd_seq_oss_midi_check_exit_port()
244 if (midi_devs[index]) in snd_seq_oss_midi_check_exit_port()
265 if ((mdev = midi_devs[i]) != NULL) { in snd_seq_oss_midi_clear_all()
268 midi_devs[i] = NULL; in snd_seq_oss_midi_clear_all()
/linux-4.4.14/Documentation/sound/alsa/
DALSA-Configuration.txt2021 midi_devs - MIDI devices # (1-4, default=4)