Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/audio/alsa-utils/files/patch-alsactl_boot_params.c
34605 views
1
--- alsactl/boot_params.c.orig 2026-02-18 15:46:59 UTC
2
+++ alsactl/boot_params.c
3
@@ -629,9 +629,9 @@
4
goto out;
5
}
6
7
- if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts_monotonic) < 0) {
8
+ if (clock_gettime(CLOCK_MONOTONIC, &ts_monotonic) < 0) {
9
err = -errno;
10
- error("Failed to get CLOCK_MONOTONIC_RAW: %s", strerror(errno));
11
+ error("Failed to get CLOCK_MONOTONIC: %s", strerror(errno));
12
goto out;
13
}
14
15
@@ -742,8 +742,8 @@
16
}
17
18
if (ts_monotonic.tv_sec == 0) {
19
- if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts_monotonic) < 0) {
20
- dbg("Failed to get CLOCK_MONOTONIC_RAW: %s", strerror(errno));
21
+ if (clock_gettime(CLOCK_MONOTONIC, &ts_monotonic) < 0) {
22
+ dbg("Failed to get CLOCK_MONOTONIC: %s", strerror(errno));
23
return changes;
24
}
25
}
26
@@ -961,9 +961,9 @@
27
}
28
ts_realtime.tv_nsec = 0;
29
30
- if (clock_gettime(CLOCK_MONOTONIC_RAW, &ts_monotonic) < 0) {
31
+ if (clock_gettime(CLOCK_MONOTONIC, &ts_monotonic) < 0) {
32
err = -errno;
33
- error("Failed to get CLOCK_MONOTONIC_RAW: %s", strerror(errno));
34
+ error("Failed to get CLOCK_MONOTONIC: %s", strerror(errno));
35
goto out;
36
}
37
ts_monotonic.tv_nsec = 0;
38
39