Home
last modified time | relevance | path

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

/sound/core/seq/
Dseq_timer.c57 struct snd_seq_timer *tmr; in snd_seq_timer_new() local
59 tmr = kzalloc(sizeof(*tmr), GFP_KERNEL); in snd_seq_timer_new()
60 if (tmr == NULL) { in snd_seq_timer_new()
64 spin_lock_init(&tmr->lock); in snd_seq_timer_new()
67 snd_seq_timer_defaults(tmr); in snd_seq_timer_new()
70 snd_seq_timer_reset(tmr); in snd_seq_timer_new()
72 return tmr; in snd_seq_timer_new()
76 void snd_seq_timer_delete(struct snd_seq_timer **tmr) in snd_seq_timer_delete() argument
78 struct snd_seq_timer *t = *tmr; in snd_seq_timer_delete()
79 *tmr = NULL; in snd_seq_timer_delete()
[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.c450 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()
470 struct snd_seq_timer *tmr; in snd_seq_queue_timer_close() local
476 tmr = queue->timer; in snd_seq_queue_timer_close()
767 struct snd_seq_timer *tmr; in snd_seq_info_queues_read() local
773 tmr = q->timer; in snd_seq_info_queues_read()
774 if (tmr->tempo) in snd_seq_info_queues_read()
775 bpm = 60000000 / tmr->tempo; in snd_seq_info_queues_read()
784 snd_iprintf(buffer, "timer state : %s\n", tmr->running ? "Running" : "Stopped"); in snd_seq_info_queues_read()
[all …]
Dseq_clientmgr.c1647 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_status() local
1658 tmr = queue->timer; in snd_seq_ioctl_get_queue_status()
1661 status.time = snd_seq_timer_get_cur_time(tmr); in snd_seq_ioctl_get_queue_status()
1662 status.tick = snd_seq_timer_get_cur_tick(tmr); in snd_seq_ioctl_get_queue_status()
1664 status.running = tmr->running; in snd_seq_ioctl_get_queue_status()
1681 struct snd_seq_timer *tmr; in snd_seq_ioctl_get_queue_tempo() local
1692 tmr = queue->timer; 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()
[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.c24 static struct sound_timer_operations *tmr; variable
190 this_time = tmr->get_time(tmr_no); in seq_input_event()
633 if ((ret = tmr->event(tmr_no, event_rec)) == TIMER_ARMED) in seq_timing_event()
1010 tmr = sound_timer_devs[tmr_no]; in sequencer_open()
1014 if (tmr == NULL) in sequencer_open()
1084 if (try_module_get(tmr->owner)) in sequencer_open()
1085 tmr->open(tmr_no, seq_mode); in sequencer_open()
1184 tmr->close(tmr_no); in sequencer_release()
1185 module_put(tmr->owner); in sequencer_release()
1346 return tmr->ioctl(tmr_no, cmd, arg); in sequencer_ioctl()
[all …]