projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3606f92
)
ALSA: core: timer: Use NSEC_PER_SEC macro
author
Jinjie Ruan
<ruanjinjie@huawei.com>
Mon, 2 Sep 2024 07:16:22 +0000
(15:16 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 2 Sep 2024 08:18:11 +0000
(10:18 +0200)
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>
sound/core/timer.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/timer.c
b/sound/core/timer.c
index 7610f102360dffd0d6e5882326dc00018924f16b..4315d1e98ebfb8560b71e49c16ec1ceb919c0fba 100644
(file)
--- 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,