vserver 1.9.3
[linux-2.6.git] / sound / core / seq / oss / seq_oss_timer.c
index b0d72a8..b17c1f8 100644 (file)
@@ -46,7 +46,7 @@ snd_seq_oss_timer_new(seq_oss_devinfo_t *dp)
 {
        seq_oss_timer_t *rec;
 
-       rec = snd_kcalloc(sizeof(*rec), GFP_KERNEL);
+       rec = kcalloc(1, sizeof(*rec), GFP_KERNEL);
        if (rec == NULL)
                return NULL;
 
@@ -168,7 +168,7 @@ snd_seq_oss_timer_start(seq_oss_timer_t *timer)
        tmprec.queue = dp->queue;
        tmprec.ppq = timer->ppq;
        tmprec.tempo = timer->tempo;
-       snd_seq_kernel_client_ctl(dp->cseq, SNDRV_SEQ_IOCTL_SET_QUEUE_TEMPO, &tmprec);
+       snd_seq_set_queue_tempo(dp->cseq, &tmprec);
 
        send_timer_event(dp, SNDRV_SEQ_EVENT_START, 0);
        timer->running = 1;