/* create and register a new timer. if queue is not started yet, start it.  */
struct seq_oss_timer* snd_seq_oss_timer_new(struct seq_oss_devinfo *dp)
/* create and register a new timer. if queue is not started yet, start it.  */
struct seq_oss_timer* snd_seq_oss_timer_new(struct seq_oss_devinfo *dp)
{
	struct seq_oss_timer *rec;
	rec = kzalloc(sizeof(*rec), GFP_KERNEL);
	if (rec == NULL)
		return NULL;
	rec->dp = dp;
	rec->cur_tick = 0;
	rec->realtime = 0;
	rec->running = 0;
	rec->oss_tempo = 60;
	rec->oss_timebase = 100;
	calc_alsa_tempo(rec);
	return rec;
}