Searched refs:tmr (Results 1 – 4 of 4) sorted by relevance
/sound/core/seq/ |
D | seq_timer.c | 21 static void snd_seq_timer_set_tick_resolution(struct snd_seq_timer *tmr) in snd_seq_timer_set_tick_resolution() argument 23 if (tmr->tempo < 1000000) in snd_seq_timer_set_tick_resolution() 24 tmr->tick.resolution = (tmr->tempo * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution() 28 s = tmr->tempo % tmr->ppq; in snd_seq_timer_set_tick_resolution() 29 s = (s * 1000) / tmr->ppq; in snd_seq_timer_set_tick_resolution() 30 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution() 31 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution() 33 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution() 34 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution() 35 snd_seq_timer_update_tick(&tmr->tick, 0); in snd_seq_timer_set_tick_resolution() [all …]
|
D | seq_timer.h | 50 void snd_seq_timer_delete(struct snd_seq_timer **tmr); 113 void snd_seq_timer_defaults(struct snd_seq_timer *tmr); 114 void snd_seq_timer_reset(struct snd_seq_timer *tmr); 115 int snd_seq_timer_stop(struct snd_seq_timer *tmr); 116 int snd_seq_timer_start(struct snd_seq_timer *tmr); 117 int snd_seq_timer_continue(struct snd_seq_timer *tmr); 118 int snd_seq_timer_set_tempo(struct snd_seq_timer *tmr, int tempo); 119 int snd_seq_timer_set_tempo_ppq(struct snd_seq_timer *tmr, int tempo, int ppq); 120 int snd_seq_timer_set_position_tick(struct snd_seq_timer *tmr, snd_seq_tick_time_t position); 121 int snd_seq_timer_set_position_time(struct snd_seq_timer *tmr, snd_seq_real_time_t position); [all …]
|
D | seq_queue.c | 440 struct snd_seq_timer *tmr; in snd_seq_queue_timer_open() local 445 tmr = queue->timer; in snd_seq_queue_timer_open() 448 snd_seq_timer_defaults(tmr); in snd_seq_queue_timer_open() 738 struct snd_seq_timer *tmr; in snd_seq_info_queues_read() local 747 tmr = q->timer; in snd_seq_info_queues_read() 748 if (tmr->tempo) in snd_seq_info_queues_read() 749 bpm = 60000000 / tmr->tempo; in snd_seq_info_queues_read() 763 snd_iprintf(buffer, "timer state : %s\n", tmr->running ? "Running" : "Stopped"); in snd_seq_info_queues_read() 764 snd_iprintf(buffer, "timer PPQ : %d\n", tmr->ppq); in snd_seq_info_queues_read() 765 snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); in snd_seq_info_queues_read() [all …]
|
D | seq_clientmgr.c | 1661 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_status() local 1669 tmr = queue->timer; in snd_seq_ioctl_get_queue_status() 1672 status->time = snd_seq_timer_get_cur_time(tmr, true); in snd_seq_ioctl_get_queue_status() 1673 status->tick = snd_seq_timer_get_cur_tick(tmr); in snd_seq_ioctl_get_queue_status() 1675 status->running = tmr->running; in snd_seq_ioctl_get_queue_status() 1690 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_tempo() local 1698 tmr = queue->timer; in snd_seq_ioctl_get_queue_tempo() 1700 tempo->tempo = tmr->tempo; in snd_seq_ioctl_get_queue_tempo() 1701 tempo->ppq = tmr->ppq; in snd_seq_ioctl_get_queue_tempo() 1702 tempo->skew_value = tmr->skew; in snd_seq_ioctl_get_queue_tempo() [all …]
|