Lines Matching refs:tempo
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()
45 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * 1000; in snd_seq_timer_set_tick_resolution()
98 tmr->tempo = 500000; /* 120 BPM */ in snd_seq_timer_defaults()
177 int snd_seq_timer_set_tempo(struct snd_seq_timer * tmr, int tempo) in snd_seq_timer_set_tempo() argument
183 if (tempo <= 0) in snd_seq_timer_set_tempo()
186 if ((unsigned int)tempo != tmr->tempo) { in snd_seq_timer_set_tempo()
187 tmr->tempo = tempo; in snd_seq_timer_set_tempo()
195 int snd_seq_timer_set_tempo_ppq(struct snd_seq_timer *tmr, int tempo, int ppq) in snd_seq_timer_set_tempo_ppq() argument
202 if (tempo <= 0 || ppq <= 0) in snd_seq_timer_set_tempo_ppq()
212 changed = (tempo != tmr->tempo) || (ppq != tmr->ppq); in snd_seq_timer_set_tempo_ppq()
213 tmr->tempo = tempo; in snd_seq_timer_set_tempo_ppq()