Home
last modified time | relevance | path

Searched refs:midi_devs (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/sound/drivers/
H A Dvirmidi.c40 /* hack: OSS defines midi_devs, so undefine it (versioned symbols) */
41 #undef midi_devs macro
53 static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; variable
61 module_param_array(midi_devs, int, NULL, 0444);
62 MODULE_PARM_DESC(midi_devs, "MIDI devices # (1-4)");
86 if (midi_devs[dev] > MAX_MIDI_DEVICES) { in snd_virmidi_probe()
90 midi_devs[dev] = MAX_MIDI_DEVICES; in snd_virmidi_probe()
92 for (idx = 0; idx < midi_devs[dev]; idx++) { in snd_virmidi_probe()
/kernel/linux/linux-6.6/sound/drivers/
H A Dvirmidi.c40 /* hack: OSS defines midi_devs, so undefine it (versioned symbols) */
41 #undef midi_devs macro
52 static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 4}; variable
60 module_param_array(midi_devs, int, NULL, 0444);
61 MODULE_PARM_DESC(midi_devs, "MIDI devices # (1-4)");
85 if (midi_devs[dev] > MAX_MIDI_DEVICES) { in snd_virmidi_probe()
89 midi_devs[dev] = MAX_MIDI_DEVICES; in snd_virmidi_probe()
91 for (idx = 0; idx < midi_devs[dev]; idx++) { in snd_virmidi_probe()
/kernel/linux/linux-5.10/sound/core/seq/oss/
H A Dseq_oss_midi.c48 static struct seq_oss_midi *midi_devs[SNDRV_SEQ_OSS_MAX_MIDI_DEVS]; variable
101 mdev = midi_devs[dev]; in get_mdev()
120 mdev = midi_devs[i]; in find_slot()
194 if (midi_devs[i] == NULL) in snd_seq_oss_midi_check_new_port()
207 midi_devs[mdev->seq_device] = mdev; in snd_seq_oss_midi_check_new_port()
225 midi_devs[mdev->seq_device] = NULL; in snd_seq_oss_midi_check_exit_port()
234 if (midi_devs[index]) in snd_seq_oss_midi_check_exit_port()
255 if ((mdev = midi_devs[i]) != NULL) { in snd_seq_oss_midi_clear_all()
258 midi_devs[i] = NULL; in snd_seq_oss_midi_clear_all()
/kernel/linux/linux-6.6/sound/core/seq/oss/
H A Dseq_oss_midi.c48 static struct seq_oss_midi *midi_devs[SNDRV_SEQ_OSS_MAX_MIDI_DEVS]; variable
101 mdev = midi_devs[dev]; in get_mdev()
120 mdev = midi_devs[i]; in find_slot()
195 if (midi_devs[i] == NULL) in snd_seq_oss_midi_check_new_port()
208 midi_devs[mdev->seq_device] = mdev; in snd_seq_oss_midi_check_new_port()
227 midi_devs[mdev->seq_device] = NULL; in snd_seq_oss_midi_check_exit_port()
236 if (midi_devs[index]) in snd_seq_oss_midi_check_exit_port()
257 mdev = midi_devs[i]; in snd_seq_oss_midi_clear_all()
261 midi_devs[i] = NULL; in snd_seq_oss_midi_clear_all()

Completed in 3 milliseconds