=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/dev.c,v retrieving revision 1.38 retrieving revision 1.39 diff -c -r1.38 -r1.39 *** src/usr.bin/sndiod/dev.c 2018/06/26 07:22:55 1.38 --- src/usr.bin/sndiod/dev.c 2018/06/26 07:27:44 1.39 *************** *** 1,4 **** ! /* $OpenBSD: dev.c,v 1.38 2018/06/26 07:22:55 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * --- 1,4 ---- ! /* $OpenBSD: dev.c,v 1.39 2018/06/26 07:27:44 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * *************** *** 1430,1436 **** s->mix.resampbuf = NULL; s->mix.join = 1; s->mix.expand = 1; ! if (s->dup) { if (dev_nch > slot_nch) s->mix.expand = dev_nch / slot_nch; else if (dev_nch < slot_nch) --- 1430,1436 ---- s->mix.resampbuf = NULL; s->mix.join = 1; s->mix.expand = 1; ! if (s->opt->dup) { if (dev_nch > slot_nch) s->mix.expand = dev_nch / slot_nch; else if (dev_nch < slot_nch) *************** *** 1465,1471 **** s->sub.resampbuf = NULL; s->sub.join = 1; s->sub.expand = 1; ! if (s->dup) { if (dev_nch > slot_nch) s->sub.join = dev_nch / slot_nch; else if (dev_nch < slot_nch) --- 1465,1471 ---- s->sub.resampbuf = NULL; s->sub.join = 1; s->sub.expand = 1; ! if (s->opt->dup) { if (dev_nch > slot_nch) s->sub.join = dev_nch / slot_nch; else if (dev_nch < slot_nch) *************** *** 1684,1690 **** s->xrun = XRUN_IGNORE; s->tstate = MMC_OFF; } - s->dup = s->opt->dup; s->appbufsz = d->bufsz; s->round = d->round; s->rate = d->rate; --- 1684,1689 ----