Searched refs:tempo (Results 1 – 6 of 6) sorted by relevance
/sound/core/seq/ |
D | seq_timer.c | 37 int tempo, int ppq) in snd_seq_timer_set_tick_resolution() argument 39 if (tempo < 1000000) in snd_seq_timer_set_tick_resolution() 40 tick->resolution = (tempo * 1000) / ppq; in snd_seq_timer_set_tick_resolution() 44 s = tempo % ppq; in snd_seq_timer_set_tick_resolution() 46 tick->resolution = (tempo / ppq) * 1000; in snd_seq_timer_set_tick_resolution() 98 tmr->tempo = 500000; /* 120 BPM */ in snd_seq_timer_defaults() 99 snd_seq_timer_set_tick_resolution(&tmr->tick, tmr->tempo, tmr->ppq); in snd_seq_timer_defaults() 172 int snd_seq_timer_set_tempo(struct snd_seq_timer * tmr, int tempo) in snd_seq_timer_set_tempo() argument 178 if (tempo <= 0) in snd_seq_timer_set_tempo() 181 if ((unsigned int)tempo != tmr->tempo) { in snd_seq_timer_set_tempo() [all …]
|
D | seq_clientmgr.c | 1679 struct snd_seq_queue_tempo tempo; in snd_seq_ioctl_get_queue_tempo() local 1683 if (copy_from_user(&tempo, arg, sizeof(tempo))) in snd_seq_ioctl_get_queue_tempo() 1686 queue = queueptr(tempo.queue); in snd_seq_ioctl_get_queue_tempo() 1689 memset(&tempo, 0, sizeof(tempo)); in snd_seq_ioctl_get_queue_tempo() 1690 tempo.queue = queue->queue; in snd_seq_ioctl_get_queue_tempo() 1694 tempo.tempo = tmr->tempo; in snd_seq_ioctl_get_queue_tempo() 1695 tempo.ppq = tmr->ppq; in snd_seq_ioctl_get_queue_tempo() 1696 tempo.skew_value = tmr->skew; in snd_seq_ioctl_get_queue_tempo() 1697 tempo.skew_base = tmr->skew_base; in snd_seq_ioctl_get_queue_tempo() 1700 if (copy_to_user(arg, &tempo, sizeof(tempo))) in snd_seq_ioctl_get_queue_tempo() [all …]
|
D | seq_timer.h | 39 unsigned int tempo; /* current tempo, us/tick */ member 133 int snd_seq_timer_set_tempo(struct snd_seq_timer *tmr, int tempo);
|
D | seq_queue.c | 496 result = snd_seq_timer_set_tempo(q->timer, info->tempo); in snd_seq_queue_timer_set_tempo() 774 if (tmr->tempo) in snd_seq_info_queues_read() 775 bpm = 60000000 / tmr->tempo; in snd_seq_info_queues_read() 786 snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); in snd_seq_info_queues_read()
|
/sound/core/seq/oss/ |
D | seq_oss_timer.c | 130 timer->tempo = (60 * 1000000) / timer->oss_tempo; in calc_alsa_tempo() 170 tmprec.tempo = timer->tempo; in snd_seq_oss_timer_start() 221 send_timer_event(timer->dp, SNDRV_SEQ_EVENT_TEMPO, timer->tempo); in snd_seq_oss_timer_tempo()
|
D | seq_oss_timer.h | 35 int tempo, ppq; /* ALSA queue */ member
|