ALSA: timer: Simplify timer hw resolution calls
authorTakashi Iwai <tiwai@suse.de>
Wed, 16 May 2018 21:45:33 +0000 (23:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 18 May 2018 06:49:12 +0000 (08:49 +0200)
commitfdcb5761c1580b03fb1ab8625eaa7db03fb8b7d0
treedfd86e8f8fe6f9eea12a57eeb16be462e98f4bd3
parent3ae180972564846e6d794e3615e1ab0a1e6c4ef9
ALSA: timer: Simplify timer hw resolution calls

There multiple open-codes to get the hardware timer resolution.
Make a local helper function snd_timer_hw_resolution() and call it
from all relevant places.

There is no functional change by this, just a preliminary work for the
following timer resolution hardening patch.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c