Home
last modified time | relevance | path

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

/sound/core/seq/
Dseq_timer.c36 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 …]
Dseq_timer.h65 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 …]
Dseq_queue.c462 struct snd_seq_timer *tmr; in snd_seq_queue_timer_open() local
467 tmr = queue->timer; in snd_seq_queue_timer_open()
469 snd_seq_timer_defaults(tmr); in snd_seq_queue_timer_open()
784 struct snd_seq_timer *tmr; in snd_seq_info_queues_read() local
792 tmr = q->timer; in snd_seq_info_queues_read()
793 if (tmr->tempo) in snd_seq_info_queues_read()
794 bpm = 60000000 / tmr->tempo; in snd_seq_info_queues_read()
808 snd_iprintf(buffer, "timer state : %s\n", tmr->running ? "Running" : "Stopped"); in snd_seq_info_queues_read()
809 snd_iprintf(buffer, "timer PPQ : %d\n", tmr->ppq); in snd_seq_info_queues_read()
810 snd_iprintf(buffer, "current tempo : %d\n", tmr->tempo); in snd_seq_info_queues_read()
[all …]
Dseq_clientmgr.c1683 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_status() local
1694 tmr = queue->timer; in snd_seq_ioctl_get_queue_status()
1697 status.time = snd_seq_timer_get_cur_time(tmr, true); in snd_seq_ioctl_get_queue_status()
1698 status.tick = snd_seq_timer_get_cur_tick(tmr); in snd_seq_ioctl_get_queue_status()
1700 status.running = tmr->running; in snd_seq_ioctl_get_queue_status()
1717 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_tempo() local
1728 tmr = queue->timer; in snd_seq_ioctl_get_queue_tempo()
1730 tempo.tempo = tmr->tempo; in snd_seq_ioctl_get_queue_tempo()
1731 tempo.ppq = tmr->ppq; in snd_seq_ioctl_get_queue_tempo()
1732 tempo.skew_value = tmr->skew; in snd_seq_ioctl_get_queue_tempo()
[all …]
/sound/oss/
Dsound_timer.c28 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()
Dsequencer.c25 static struct sound_timer_operations *tmr; variable
190 this_time = tmr->get_time(tmr_no); in seq_input_event()
636 if ((ret = tmr->event(tmr_no, event_rec)) == TIMER_ARMED) in seq_timing_event()
1006 tmr = sound_timer_devs[tmr_no]; in sequencer_open()
1010 if (tmr == NULL) in sequencer_open()
1080 if (try_module_get(tmr->owner)) in sequencer_open()
1081 tmr->open(tmr_no, seq_mode); in sequencer_open()
1176 tmr->close(tmr_no); in sequencer_release()
1177 module_put(tmr->owner); in sequencer_release()
1337 return tmr->ioctl(tmr_no, cmd, arg); in sequencer_ioctl()
[all …]