ALSA: timer: minimize open-coded access to hw.resolution
authorOswald Buddenhagen <oswald.buddenhagen@gmx.de>
Mon, 12 Jun 2023 19:13:22 +0000 (21:13 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 13 Jun 2023 05:43:38 +0000 (07:43 +0200)
commit6cc844504638b0d1429be729b2d66be92276e24b
tree43ed0bc66fe69f41496af9c42ae175d2ab6476bc
parente68235c8aae9af08a868e4a4337daf2bcb4f6a92
ALSA: timer: minimize open-coded access to hw.resolution

Some info-querying code still used hw.resolution directly instead of
calling snd_timer_hw_resolution(), thus missing a possible
hw.c_resolution callback. This patch rectifies that.

Signed-off-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Link: https://lore.kernel.org/r/20230612191325.1315854-7-oswald.buddenhagen@gmx.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/timer.c