Lines Matching refs:tempo
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()
30 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution()
83 tmr->tempo = 500000; /* 120 BPM */ in snd_seq_timer_defaults()
162 int snd_seq_timer_set_tempo(struct snd_seq_timer * tmr, int tempo) in snd_seq_timer_set_tempo() argument
168 if (tempo <= 0) in snd_seq_timer_set_tempo()
171 if ((unsigned int)tempo != tmr->tempo) { in snd_seq_timer_set_tempo()
172 tmr->tempo = tempo; in snd_seq_timer_set_tempo()
180 int snd_seq_timer_set_tempo_ppq(struct snd_seq_timer *tmr, int tempo, int ppq) in snd_seq_timer_set_tempo_ppq() argument
187 if (tempo <= 0 || ppq <= 0) in snd_seq_timer_set_tempo_ppq()
197 changed = (tempo != tmr->tempo) || (ppq != tmr->ppq); in snd_seq_timer_set_tempo_ppq()
198 tmr->tempo = tempo; in snd_seq_timer_set_tempo_ppq()