summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2020-03-31 06:29:06 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2020-03-31 06:29:06 +0000
commitff6e3d97e1558a78dfa14c07472fbc7983533e94 (patch)
treef7e92c8617c57caf171e279050abbfc77af3b8ff /usr.bin
parent0df886a0d9ece3a89eea4e920ffb2ed45c7874fa (diff)
Don't send "control changed" messages when hardware controls are set.
This sends twice the "control changed" messages because a second message will be sent upon the notification from the hardware.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/sndiod/dev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/sndiod/dev.c b/usr.bin/sndiod/dev.c
index 0fbfb911e6b..1aae5c3220f 100644
--- a/usr.bin/sndiod/dev.c
+++ b/usr.bin/sndiod/dev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dev.c,v 1.65 2020/03/08 14:52:20 ratchov Exp $ */
+/* $OpenBSD: dev.c,v 1.66 2020/03/31 06:29:05 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -2398,9 +2398,9 @@ dev_setctl(struct dev *d, int addr, int val)
slot_setvol(d->slot + num, val);
dev_midi_vol(d, d->slot + num);
}
+ c->val_mask = ~0U;
}
c->curval = val;
- c->val_mask = ~0U;
return 1;
}