Home
last modified time | relevance | path

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

/sound/oss/
Dsb_midi.c35 sb_devc *devc = midi_devs[dev]->devc; in sb_midi_open()
72 sb_devc *devc = midi_devs[dev]->devc; in sb_midi_close()
88 sb_devc *devc = midi_devs[dev]->devc; in sb_midi_out()
111 sb_devc *devc = midi_devs[dev]->devc; in sb_midi_end_read()
176 midi_devs[dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); in sb_dsp_midi_init()
177 if (midi_devs[dev] == NULL) in sb_dsp_midi_init()
183 memcpy((char *) midi_devs[dev], (char *) &sb_midi_operations, in sb_dsp_midi_init()
187 midi_devs[dev]->owner = owner; in sb_dsp_midi_init()
189 midi_devs[dev]->devc = devc; in sb_dsp_midi_init()
192 midi_devs[dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); in sb_dsp_midi_init()
[all …]
Dv_midi.c47 vmidi_devc *devc = midi_devs[dev]->devc; in v_midi_open()
75 vmidi_devc *devc = midi_devs[dev]->devc; in v_midi_close()
90 vmidi_devc *devc = midi_devs[dev]->devc; in v_midi_out()
96 pdevc = midi_devs[devc->pair_mididev]->devc; in v_midi_out()
112 vmidi_devc *devc = midi_devs[dev]->devc; in v_midi_end_read()
196 midi_devs[midi1] = &m->m_ops[0]; in attach_v_midi()
208 midi_devs[midi2] = &m->m_ops[1]; in attach_v_midi()
214 memcpy ((char *) midi_devs[midi1], (char *) &v_midi_operations, in attach_v_midi()
224 midi_devs[midi1]->devc = v_devc[0]; in attach_v_midi()
226 midi_devs[midi1]->converter = &m->s_ops[0]; in attach_v_midi()
[all …]
Duart401.c120 uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; in uart401_open()
140 uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; in uart401_close()
150 uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; in uart401_out()
354 midi_devs[devc->my_dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); in probe_uart401()
355 if (!midi_devs[devc->my_dev]) { in probe_uart401()
359 memcpy(midi_devs[devc->my_dev], &uart401_operations, sizeof(struct midi_operations)); in probe_uart401()
362 midi_devs[devc->my_dev]->owner = owner; in probe_uart401()
364 midi_devs[devc->my_dev]->devc = devc; in probe_uart401()
365 midi_devs[devc->my_dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); in probe_uart401()
366 if (!midi_devs[devc->my_dev]->converter) { in probe_uart401()
[all …]
Dmidibuf.c88 if (midi_devs[dev]->buffer_status != NULL) in drain_midi_queue()
89 while (!signal_pending(current) && midi_devs[dev]->buffer_status(dev)) in drain_midi_queue()
128 if (midi_devs[dev] != NULL && midi_out_buf[dev] != NULL) in midi_poll()
137 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 …]
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.c291 if (dev >= max_mididev || midi_devs[dev]==NULL) in sequencer_write()
298 if ((err = midi_devs[dev]->open(dev, mode, in sequencer_write()
809 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in play_event()
812 if (!midi_devs[dev]->outputc(dev, q[1])) in play_event()
918 if (midi_devs[dev] && midi_devs[dev]->converter != NULL) in setup_mode2()
920 synth_devs[max_synthdev++] = midi_devs[dev]->converter; in setup_mode2()
1070 if (!midi_opened[i] && midi_devs[i]) in sequencer_open()
1072 if (!try_module_get(midi_devs[i]->owner)) in sequencer_open()
1075 if ((retval = midi_devs[i]->open(i, mode, in sequencer_open()
1111 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.c466 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in mpu401_open()
490 if ( (coprocessor = midi_devs[dev]->coproc) != NULL ) in mpu401_open()
530 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()
1105 midi_devs[m] = &mpu401_midi_operations[devc->devno]; in attach_mpu401()
1108 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.c1269 last_sb->midi_irq_cookie=midi_devs[hw_config->slots[4]]->devc; in probe_sbmpu()
Dpss.c783 midi_devs[hw_config->slots[1]]->coproc = &pss_coproc_operations; in probe_pss_mpu()
Dsscape.c713 midi_devs[hw_config->slots[1]]->coproc = &sscape_coproc_operations; in attach_sscape()
/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()
102 midi_devs[dev] = MAX_MIDI_DEVICES; in snd_virmidi_probe()
104 for (idx = 0; idx < midi_devs[dev]; idx++) { in snd_virmidi_probe()
/sound/core/seq/oss/
Dseq_oss_midi.c57 static struct seq_oss_midi *midi_devs[SNDRV_SEQ_OSS_MAX_MIDI_DEVS]; variable
110 mdev = midi_devs[dev]; in get_mdev()
129 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()
245 if (midi_devs[index]) in snd_seq_oss_midi_check_exit_port()
266 if ((mdev = midi_devs[i]) != NULL) { in snd_seq_oss_midi_clear_all()
270 midi_devs[i] = NULL; in snd_seq_oss_midi_clear_all()