]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5afe67dc4565b9ff51d72b4ddeb55289b4a6d363
treedfd86e8f8fe6f9eea12a57eeb16be462e98f4bd3
parent0ca02b19a33abcfad86611f2b0f8645702a98265
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