sndiod: Use proper mode to setup conversions

Now we need to use opt's mode instead of slot's mode as this is the
one used by dev_cycle(). Fixes monitoring mode not working in case
dev->rchan != dev->pchan
This commit is contained in:
Alexandre Ratchov 2021-04-29 15:12:23 +02:00
parent 12b31d021a
commit 0cb3defc3c
1 changed files with 1 additions and 1 deletions

View File

@ -1594,7 +1594,7 @@ slot_initconv(struct slot *s)
}
if (s->mode & MODE_RECMASK) {
unsigned int outchan = (s->mode & MODE_MON) ?
unsigned int outchan = (s->opt->mode & MODE_MON) ?
d->pchan : d->rchan;
s->sub.encbuf = NULL;