diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2024-05-24 15:00:16 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2024-05-24 15:00:16 +0000 |
commit | fa42565da3df31aecb5c76d7ca3402e6458e7952 (patch) | |
tree | 4e7369da5ae673880885105a93a545d537a7f9e6 /usr.bin | |
parent | 749f25db5addbc07d6d031434c937d33bbb56c84 (diff) |
sndiod: Don't mark as dirty controls that have not been changed
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/sndiod/dev_sioctl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/sndiod/dev_sioctl.c b/usr.bin/sndiod/dev_sioctl.c index 907f49267b0..7df7dcee781 100644 --- 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:55 ratchov Exp $ */ +/* $OpenBSD: dev_sioctl.c,v 1.9 2024/05/24 15:00:15 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) { |