/* ALSA callback function, called when attempting to open the MIDI device. Check that the MIDI firmware has been loaded, because we don't want to crash the machine. Also check that someone isn't using the hardware IOCTL device.  */
static int mpu401_open(struct snd_mpu401 *mpu)
/* ALSA callback function, called when attempting to open the MIDI device. Check that the MIDI firmware has been loaded, because we don't want to crash the machine. Also check that someone isn't using the hardware IOCTL device.  */
static int mpu401_open(struct snd_mpu401 *mpu)
{
	if (!verify_mpu401(mpu)) {
		snd_printk(KERN_ERR "sscape: MIDI disabled, "
				    "please load firmware\n");
		return -ENODEV;
	}
	return 0;
}