Lines Matching full:ports
10 - automatic opening of midi ports on first received event or subscription
54 struct seq_midisynth *ports[SNDRV_RAWMIDI_DEVICES]; member
267 unsigned int p, ports; in snd_seq_midisynth_probe() local
287 ports = output_count; in snd_seq_midisynth_probe()
288 if (ports < input_count) in snd_seq_midisynth_probe()
289 ports = input_count; in snd_seq_midisynth_probe()
290 if (ports == 0) { in snd_seq_midisynth_probe()
294 if (ports > (256 / SNDRV_RAWMIDI_DEVICES)) in snd_seq_midisynth_probe()
295 ports = 256 / SNDRV_RAWMIDI_DEVICES; in snd_seq_midisynth_probe()
319 msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL); in snd_seq_midisynth_probe()
324 for (p = 0; p < ports; p++) { in snd_seq_midisynth_probe()
346 if (ports > 1) in snd_seq_midisynth_probe()
352 if (ports > 1) in snd_seq_midisynth_probe()
385 client->ports_per_device[device] = ports; in snd_seq_midisynth_probe()
386 client->ports[device] = msynth; in snd_seq_midisynth_probe()
397 for (p = 0; p < ports; p++) in snd_seq_midisynth_probe()
419 int device = dev->device, p, ports; in snd_seq_midisynth_remove() local
423 if (client == NULL || client->ports[device] == NULL) { in snd_seq_midisynth_remove()
427 ports = client->ports_per_device[device]; in snd_seq_midisynth_remove()
429 msynth = client->ports[device]; in snd_seq_midisynth_remove()
430 client->ports[device] = NULL; in snd_seq_midisynth_remove()
431 for (p = 0; p < ports; p++) in snd_seq_midisynth_remove()