45 #include <linux/wait.h>
48 #include <linux/module.h>
62 #define MAX_MIDI_DEVICES 4
102 "too much midi devices for virmidi %d: "
106 for (idx = 0; idx < midi_devs[
dev]; idx++) {
124 platform_set_drvdata(devptr, card);
135 platform_set_drvdata(devptr,
NULL);
139 #define SND_VIRMIDI_DRIVER "snd_virmidi"
142 .probe = snd_virmidi_probe,
150 static void snd_virmidi_unregister_all(
void)
159 static int __init alsa_card_virmidi_init(
void)
175 if (!platform_get_drvdata(device)) {
184 printk(
KERN_ERR "Card-VirMIDI soundcard not found or device busy\n");
186 snd_virmidi_unregister_all();
192 static void __exit alsa_card_virmidi_exit(
void)
194 snd_virmidi_unregister_all();