aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/seq/seq_timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/core/seq/seq_timer.c')
-rw-r--r--sound/core/seq/seq_timer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/core/seq/seq_timer.c b/sound/core/seq/seq_timer.c
index 23167578231f..f587d0e27476 100644
--- a/sound/core/seq/seq_timer.c
+++ b/sound/core/seq/seq_timer.c
@@ -371,9 +371,7 @@ static int initialize_timer(struct snd_seq_timer *tmr)
371 371
372 tmr->ticks = 1; 372 tmr->ticks = 1;
373 if (!(t->hw.flags & SNDRV_TIMER_HW_SLAVE)) { 373 if (!(t->hw.flags & SNDRV_TIMER_HW_SLAVE)) {
374 unsigned long r = t->hw.resolution; 374 unsigned long r = snd_timer_resolution(tmr->timeri);
375 if (! r && t->hw.c_resolution)
376 r = t->hw.c_resolution(t);
377 if (r) { 375 if (r) {
378 tmr->ticks = (unsigned int)(1000000000uL / (r * freq)); 376 tmr->ticks = (unsigned int)(1000000000uL / (r * freq));
379 if (! tmr->ticks) 377 if (! tmr->ticks)