Lines Matching refs:tempo
26 if (tmr->tempo < threshold) in snd_seq_timer_set_tick_resolution()
27 tmr->tick.resolution = (tmr->tempo * tmr->tempo_base) / tmr->ppq; in snd_seq_timer_set_tick_resolution()
31 s = tmr->tempo % tmr->ppq; in snd_seq_timer_set_tick_resolution()
33 tmr->tick.resolution = (tmr->tempo / tmr->ppq) * tmr->tempo_base; in snd_seq_timer_set_tick_resolution()
84 tmr->tempo = 500000; /* 120 BPM */ in snd_seq_timer_defaults()
157 int snd_seq_timer_set_tempo(struct snd_seq_timer * tmr, int tempo) in snd_seq_timer_set_tempo() argument
161 if (tempo <= 0) in snd_seq_timer_set_tempo()
164 if ((unsigned int)tempo != tmr->tempo) { in snd_seq_timer_set_tempo()
165 tmr->tempo = tempo; in snd_seq_timer_set_tempo()
172 int snd_seq_timer_set_tempo_ppq(struct snd_seq_timer *tmr, int tempo, int ppq, in snd_seq_timer_set_tempo_ppq() argument
179 if (tempo <= 0 || ppq <= 0) in snd_seq_timer_set_tempo_ppq()
191 changed = (tempo != tmr->tempo) || (ppq != tmr->ppq); in snd_seq_timer_set_tempo_ppq()
192 tmr->tempo = tempo; in snd_seq_timer_set_tempo_ppq()