Home
last modified time | relevance | path

Searched refs:tempo (Results 1 – 6 of 6) sorted by relevance

/sound/core/seq/
Dseq_timer.c38 if (tmr->tempo < 1000000) in snd_seq_timer_set_tick_resolution()
39 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution()
43 s = tmr->tempo % tmr->ppq; in snd_seq_timer_set_tick_resolution()
45 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution()
98 tmr->tempo = 500000; /* 120 BPM */ in snd_seq_timer_defaults()
177 int snd_seq_timer_set_tempo(struct snd_seq_timer * tmr, int tempo) in snd_seq_timer_set_tempo() argument
183 if (tempo <= 0) in snd_seq_timer_set_tempo()
186 if ((unsigned int)tempo != tmr->tempo) { in snd_seq_timer_set_tempo()
187 tmr->tempo = tempo; in snd_seq_timer_set_tempo()
Dseq_clientmgr.c1705 struct snd_seq_queue_tempo tempo; in snd_seq_ioctl_get_queue_tempo() local
1709 if (copy_from_user(&tempo, arg, sizeof(tempo))) in snd_seq_ioctl_get_queue_tempo()
1712 queue = queueptr(tempo.queue); in snd_seq_ioctl_get_queue_tempo()
1715 memset(&tempo, 0, sizeof(tempo)); in snd_seq_ioctl_get_queue_tempo()
1716 tempo.queue = queue->queue; in snd_seq_ioctl_get_queue_tempo()
1720 tempo.tempo = tmr->tempo; in snd_seq_ioctl_get_queue_tempo()
1721 tempo.ppq = tmr->ppq; in snd_seq_ioctl_get_queue_tempo()
1722 tempo.skew_value = tmr->skew; in snd_seq_ioctl_get_queue_tempo()
1723 tempo.skew_base = tmr->skew_base; in snd_seq_ioctl_get_queue_tempo()
1726 if (copy_to_user(arg, &tempo, sizeof(tempo))) in snd_seq_ioctl_get_queue_tempo()
[all …]
Dseq_timer.h39 unsigned int tempo; /* current tempo, us/tick */ member
133 int snd_seq_timer_set_tempo(struct snd_seq_timer *tmr, int tempo);
Dseq_queue.c494 result = snd_seq_timer_set_tempo(q->timer, info->tempo); in snd_seq_queue_timer_set_tempo()
772 if (tmr->tempo) in snd_seq_info_queues_read()
773 bpm = 60000000 / tmr->tempo; in snd_seq_info_queues_read()
784 snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); in snd_seq_info_queues_read()
/sound/core/seq/oss/
Dseq_oss_timer.c131 timer->tempo = (60 * 1000000) / timer->oss_tempo; in calc_alsa_tempo()
171 tmprec.tempo = timer->tempo; in snd_seq_oss_timer_start()
222 send_timer_event(timer->dp, SNDRV_SEQ_EVENT_TEMPO, timer->tempo); in snd_seq_oss_timer_tempo()
Dseq_oss_timer.h35 int tempo, ppq; /* ALSA queue */ member