/linux-2.6.39/sound/oss/ |
D | sb_midi.c | 36 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 …]
|
D | v_midi.c | 48 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 …]
|
D | uart401.c | 121 uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; in uart401_open() 141 uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; in uart401_close() 151 uart401_devc *devc = (uart401_devc *) midi_devs[dev]->devc; in uart401_out() 355 midi_devs[devc->my_dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); in probe_uart401() 356 if (!midi_devs[devc->my_dev]) { in probe_uart401() 360 memcpy(midi_devs[devc->my_dev], &uart401_operations, sizeof(struct midi_operations)); in probe_uart401() 363 midi_devs[devc->my_dev]->owner = owner; in probe_uart401() 365 midi_devs[devc->my_dev]->devc = devc; in probe_uart401() 366 midi_devs[devc->my_dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); in probe_uart401() 367 if (!midi_devs[devc->my_dev]->converter) { in probe_uart401() [all …]
|
D | midibuf.c | 88 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() 136 ok = midi_devs[dev]->outputc(dev, c); in midi_poll() 168 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in MIDIbuf_open() 174 module_put(midi_devs[dev]->owner); in MIDIbuf_open() 176 if ((err = midi_devs[dev]->open(dev, mode, in MIDIbuf_open() 186 midi_devs[dev]->close(dev); in MIDIbuf_open() 196 midi_devs[dev]->close(dev); in MIDIbuf_open() 222 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in MIDIbuf_release() [all …]
|
D | midi_synth.c | 95 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 …]
|
D | sequencer.c | 290 if (dev >= max_mididev || midi_devs[dev]==NULL) in sequencer_write() 297 if ((err = midi_devs[dev]->open(dev, mode, in sequencer_write() 808 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in play_event() 811 if (!midi_devs[dev]->outputc(dev, q[1])) in play_event() 917 if (midi_devs[dev] && midi_devs[dev]->converter != NULL) in setup_mode2() 919 synth_devs[max_synthdev++] = midi_devs[dev]->converter; in setup_mode2() 1069 if (!midi_opened[i] && midi_devs[i]) in sequencer_open() 1071 if (!try_module_get(midi_devs[i]->owner)) in sequencer_open() 1074 if ((retval = midi_devs[i]->open(i, mode, in sequencer_open() 1110 if (midi_devs[i]->buffer_status != NULL) in seq_drain_midi_queues() [all …]
|
D | dev_table.c | 35 struct midi_operations *midi_devs[MAX_MIDI_DEV]; variable 36 EXPORT_SYMBOL(midi_devs); 237 midi_devs[dev] = NULL; in sound_unload_mididev()
|
D | mpu401.c | 467 if (dev < 0 || dev >= num_midis || midi_devs[dev] == NULL) in mpu401_open() 491 if ( (coprocessor = midi_devs[dev]->coproc) != NULL ) in mpu401_open() 531 coprocessor = midi_devs[dev]->coproc; in mpu401_close() 774 if (midi_dev < 0 || midi_dev >= num_midis || midi_devs[midi_dev] == NULL) in mpu_synth_ioctl() 804 if (midi_dev < 0 || midi_dev > num_midis || midi_devs[midi_dev] == NULL) in mpu_synth_open() 832 coprocessor = midi_devs[midi_dev]->coproc; in mpu_synth_open() 869 coprocessor = midi_devs[midi_dev]->coproc; in mpu_synth_close() 1096 midi_devs[m] = &mpu401_midi_operations[devc->devno]; in attach_mpu401() 1099 midi_devs[m]->owner = owner; in attach_mpu401()
|
D | pas2_midi.c | 220 midi_devs[dev] = &pas_midi_operations; in pas_midi_init()
|
D | uart6850.c | 279 midi_devs[my_dev] = &uart6850_operations; in attach_uart6850()
|
D | dev_table.h | 363 extern struct midi_operations *midi_devs[MAX_MIDI_DEV];
|
D | sb_common.c | 1270 last_sb->midi_irq_cookie=midi_devs[hw_config->slots[4]]->devc; in probe_sbmpu()
|
D | pss.c | 783 midi_devs[hw_config->slots[1]]->coproc = &pss_coproc_operations; in probe_pss_mpu()
|
/linux-2.6.39/sound/drivers/ |
D | virmidi.c | 55 #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-2.6.39/sound/core/seq/oss/ |
D | seq_oss_midi.c | 59 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() 206 if (midi_devs[i] == NULL) in snd_seq_oss_midi_check_new_port() 219 midi_devs[mdev->seq_device] = mdev; in snd_seq_oss_midi_check_new_port() 237 midi_devs[mdev->seq_device] = NULL; in snd_seq_oss_midi_check_exit_port() 247 if (midi_devs[index]) in snd_seq_oss_midi_check_exit_port() 268 if ((mdev = midi_devs[i]) != NULL) { in snd_seq_oss_midi_clear_all() 272 midi_devs[i] = NULL; in snd_seq_oss_midi_clear_all()
|
/linux-2.6.39/Documentation/sound/alsa/ |
D | ALSA-Configuration.txt | 2000 midi_devs - MIDI devices # (1-4, default=4)
|