artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e805919
)
sndiod: Don't mark as dirty controls that have not been changed
author
ratchov
<ratchov@openbsd.org>
Fri, 24 May 2024 15:00:15 +0000
(15:00 +0000)
committer
ratchov
<ratchov@openbsd.org>
Fri, 24 May 2024 15:00:15 +0000
(15:00 +0000)
usr.bin/sndiod/dev_sioctl.c
patch
|
blob
|
history
diff --git
a/usr.bin/sndiod/dev_sioctl.c
b/usr.bin/sndiod/dev_sioctl.c
index
907f492
..
7df7dce
100644
(file)
--- a/
usr.bin/sndiod/dev_sioctl.c
+++ b/
usr.bin/sndiod/dev_sioctl.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: dev_sioctl.c,v 1.
8 2024/04/22 10:43:5
5 ratchov Exp $ */
+/* $OpenBSD: dev_sioctl.c,v 1.
9 2024/05/24 15:00:1
5 ratchov Exp $ */
/*
* Copyright (c) 2014-2020 Alexandre Ratchov <alex@caoua.org>
*
@@
-91,7
+91,8
@@
dev_sioctl_onval(void *arg, unsigned int addr, unsigned int val)
}
for (c = ctl_list; c != NULL; c = c->next) {
- if (c->scope != CTL_HW || c->u.hw.addr != addr)
+ if (c->scope != CTL_HW || c->u.hw.dev != d ||
+ c->u.hw.addr != addr)
continue;
if (log_level >= 2) {