diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-06-04 05:41:48 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-04 05:42:27 -0400 |
commit | cdbc653a04ee692a7105a96e8dd6055d9971d45c (patch) | |
tree | c1282680b3115edfd693a27bc6758208534ac557 /sound/core/seq/seq_timer.c | |
parent | 009f8c90f571d87855914dbc20e6c0ea2a3b19ae (diff) | |
parent | ceec4684085a9e4dc60439d84ab47ce260444804 (diff) |
Merge branch 'for-next' into for-linus
4.18-rc1 merge material.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/seq/seq_timer.c')
-rw-r--r-- | sound/core/seq/seq_timer.c | 4 |
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) |