=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/sock.c,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- src/usr.bin/sndiod/sock.c 2021/01/28 11:15:31 1.36 +++ src/usr.bin/sndiod/sock.c 2021/01/29 10:51:24 1.37 @@ -1,4 +1,4 @@ -/* $OpenBSD: sock.c,v 1.36 2021/01/28 11:15:31 ratchov Exp $ */ +/* $OpenBSD: sock.c,v 1.37 2021/01/29 10:51:24 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * @@ -1238,7 +1238,7 @@ slot_setvol(s, ctl); dev_midi_vol(s->dev, s); dev_onval(s->dev, - CTLADDR_SLOT_LEVEL(f->slot - s->dev->slot), ctl); + CTLADDR_SLOT_LEVEL(f->slot - slot_array), ctl); break; case AMSG_CTLSUB: #ifdef DEBUG