/* * sound/oss/sequencer.c * * The sequencer personality manager. *//* * Copyright (C) by Hannu Savolainen 1993-1997 * * OSS/Free for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL) * Version 2 (June 1991). See the "COPYING" file distributed with this software * for more info. *//* * Thomas Sailer : ioctl code reworked (vmalloc/vfree removed) * Alan Cox : reformatted and fixed a pair of null pointer bugs */#include <linux/kmod.h>#include <linux/spinlock.h>#include"sound_config.h"#include"midi_ctrl.h"static int sequencer_ok;static struct sound_timer_operations *tmr;static int tmr_no = -1;/* Currently selected timer */static int pending_timer = -1;/* For timer change operation */externunsigned long seq_time;static int obsolete_api_used;staticDEFINE_SPINLOCK(lock);/* * Local counts for number of synth and MIDI devices. These are initialized * by the sequencer_open. */static int max_mididev;static int