From 53c84758961528d0d8b0cf6ae9525d8f1f488aa1 Mon Sep 17 00:00:00 2001 From: ratchov Date: Fri, 24 May 2024 15:00:15 +0000 Subject: [PATCH] sndiod: Don't mark as dirty controls that have not been changed --- usr.bin/sndiod/dev_sioctl.c | 5 +++-- 1 file 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 * @@ -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) { -- 2.20.1