diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-09-02 15:16:22 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-09-02 10:18:11 +0200 |
commit | f48bd50a1c8d7d733b83a8fbabb3041e0d505fc7 (patch) | |
tree | 12bc7b6ad4d2a401bce2a881ca3f86fbe8f2a03f /sound | |
parent | 3606f92de365c0189c13e25a94654257751732ef (diff) | |
download | linux-stable-f48bd50a1c8d7d733b83a8fbabb3041e0d505fc7.tar.gz linux-stable-f48bd50a1c8d7d733b83a8fbabb3041e0d505fc7.tar.bz2 linux-stable-f48bd50a1c8d7d733b83a8fbabb3041e0d505fc7.zip |
ALSA: core: timer: Use NSEC_PER_SEC macro
1000000000L is number of ns per second, use NSEC_PER_SEC macro to replace
it to make it more readable
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Link: https://patch.msgid.link/20240902071622.3519787-1-ruanjinjie@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/core/timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c index 7610f102360d..4315d1e98ebf 100644 --- a/sound/core/timer.c +++ b/sound/core/timer.c @@ -1174,7 +1174,7 @@ static int snd_timer_s_close(struct snd_timer *timer) static const struct snd_timer_hardware snd_timer_system = { .flags = SNDRV_TIMER_HW_FIRST | SNDRV_TIMER_HW_WORK, - .resolution = 1000000000L / HZ, + .resolution = NSEC_PER_SEC / HZ, .ticks = 10000000L, .close = snd_timer_s_close, .start = snd_timer_s_start, |