Searched refs:tmr (Results 1 – 6 of 6) sorted by relevance
/sound/core/seq/ |
D | seq_timer.c | 36 static void snd_seq_timer_set_tick_resolution(struct snd_seq_timer *tmr) in snd_seq_timer_set_tick_resolution() argument 38 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() 44 s = (s * 1000) / 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() 46 tmr->tick.resolution += s; in snd_seq_timer_set_tick_resolution() 48 if (tmr->tick.resolution <= 0) in snd_seq_timer_set_tick_resolution() 49 tmr->tick.resolution = 1; in snd_seq_timer_set_tick_resolution() 50 snd_seq_timer_update_tick(&tmr->tick, 0); in snd_seq_timer_set_tick_resolution() [all …]
|
D | seq_timer.h | 65 void snd_seq_timer_delete(struct snd_seq_timer **tmr); 128 void snd_seq_timer_defaults(struct snd_seq_timer *tmr); 129 void snd_seq_timer_reset(struct snd_seq_timer *tmr); 130 int snd_seq_timer_stop(struct snd_seq_timer *tmr); 131 int snd_seq_timer_start(struct snd_seq_timer *tmr); 132 int snd_seq_timer_continue(struct snd_seq_timer *tmr); 133 int snd_seq_timer_set_tempo(struct snd_seq_timer *tmr, int tempo); 134 int snd_seq_timer_set_ppq(struct snd_seq_timer *tmr, int ppq); 135 int snd_seq_timer_set_position_tick(struct snd_seq_timer *tmr, snd_seq_tick_time_t position); 136 int snd_seq_timer_set_position_time(struct snd_seq_timer *tmr, snd_seq_real_time_t position); [all …]
|
D | seq_queue.c | 450 struct snd_seq_timer *tmr; in snd_seq_queue_timer_open() local 455 tmr = queue->timer; in snd_seq_queue_timer_open() 457 snd_seq_timer_defaults(tmr); in snd_seq_queue_timer_open() 765 struct snd_seq_timer *tmr; in snd_seq_info_queues_read() local 771 tmr = q->timer; in snd_seq_info_queues_read() 772 if (tmr->tempo) in snd_seq_info_queues_read() 773 bpm = 60000000 / tmr->tempo; in snd_seq_info_queues_read() 782 snd_iprintf(buffer, "timer state : %s\n", tmr->running ? "Running" : "Stopped"); in snd_seq_info_queues_read() 783 snd_iprintf(buffer, "timer PPQ : %d\n", tmr->ppq); in snd_seq_info_queues_read() 784 snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); in snd_seq_info_queues_read() [all …]
|
D | seq_clientmgr.c | 1657 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_status() local 1668 tmr = queue->timer; in snd_seq_ioctl_get_queue_status() 1671 status.time = snd_seq_timer_get_cur_time(tmr); in snd_seq_ioctl_get_queue_status() 1672 status.tick = snd_seq_timer_get_cur_tick(tmr); in snd_seq_ioctl_get_queue_status() 1674 status.running = tmr->running; in snd_seq_ioctl_get_queue_status() 1691 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_tempo() local 1702 tmr = queue->timer; in snd_seq_ioctl_get_queue_tempo() 1704 tempo.tempo = tmr->tempo; in snd_seq_ioctl_get_queue_tempo() 1705 tempo.ppq = tmr->ppq; in snd_seq_ioctl_get_queue_tempo() 1706 tempo.skew_value = tmr->skew; in snd_seq_ioctl_get_queue_tempo() [all …]
|
/sound/oss/ |
D | sound_timer.c | 28 static struct sound_lowlev_timer *tmr; variable 54 if(!tmr) in reprogram_timer() 65 usecs_per_tmr = tmr->tmr_start(tmr->dev, usecs_per_tick); in reprogram_timer() 110 tmr->tmr_disable(tmr->dev); in timer_close() 288 tmr->tmr_restart(tmr->dev); in sound_timer_interrupt() 312 if (t->priority <= tmr->priority) in sound_timer_init() 314 tmr = t; in sound_timer_init() 318 tmr = t; in sound_timer_init()
|
D | sequencer.c | 24 static struct sound_timer_operations *tmr; variable 190 this_time = tmr->get_time(tmr_no); in seq_input_event() 638 if ((ret = tmr->event(tmr_no, event_rec)) == TIMER_ARMED) in seq_timing_event() 1015 tmr = sound_timer_devs[tmr_no]; in sequencer_open() 1019 if (tmr == NULL) in sequencer_open() 1089 if (try_module_get(tmr->owner)) in sequencer_open() 1090 tmr->open(tmr_no, seq_mode); in sequencer_open() 1189 tmr->close(tmr_no); in sequencer_release() 1190 module_put(tmr->owner); in sequencer_release() 1351 return tmr->ioctl(tmr_no, cmd, arg); in sequencer_ioctl() [all …]
|