Lines Matching refs:round

267 	if (mtc->dev->rate % (30 * 4 * mtc->dev->round) == 0) {
270 } else if (mtc->dev->rate % (25 * 4 * mtc->dev->round) == 0) {
408 if (count < s->round * s->sub.bpf)
412 if (s->mix.buf.used < s->round * s->mix.bpf)
420 enc_sil_do(&s->sub.enc, data, s->round);
422 memset(data, 0, s->round * s->sub.bpf);
423 abuf_wcommit(&s->sub.buf, s->round * s->sub.bpf);
426 abuf_rdiscard(&s->mix.buf, s->round * s->mix.bpf);
445 if (icount < s->round * s->mix.bpf) {
455 abuf_rdiscard(&s->mix.buf, s->round * s->mix.bpf);
471 dec_do(&s->mix.dec, (void *)in, s->mix.decbuf, s->round);
477 in, s->mix.resampbuf, s->round, d->round);
483 cmap_add(&s->mix.cmap, in, odata, vol, d->round);
488 cmap_add(&s->mix.cmap, in + offs, odata, vol, d->round);
494 cmap_add(&s->mix.cmap, in, odata + offs, vol, d->round);
497 abuf_rdiscard(&s->mix.buf, s->round * s->mix.bpf);
557 if (ocount < s->round * s->sub.bpf) {
563 moffs = d->poffs + d->round;
573 enc_sil_do(&s->sub.enc, odata, s->round);
574 abuf_wcommit(&s->sub.buf, s->round * s->sub.bpf);
592 cmap_copy(&s->sub.cmap, idata, cmap_out, vol, d->round);
597 cmap_add(&s->sub.cmap, idata + offs, cmap_out, vol, d->round);
603 cmap_copy(&s->sub.cmap, idata, cmap_out + offs, vol, d->round);
608 s->sub.resampbuf, resamp_out, d->round, s->round);
612 enc_do(&s->sub.enc, s->sub.encbuf, (void *)enc_out, s->round);
614 abuf_wcommit(&s->sub.buf, s->round * s->sub.bpf);
647 nsamp = d->round * d->pchan;
651 d->encbuf, d->round);
653 d->prime -= d->round;
657 d->delta -= d->round;
663 nsamp = d->round * d->pchan;
667 dec_do(&d->dec, d->decbuf, (unsigned char *)d->rbuf, d->round);
696 s->mix.buf.used < s->round * s->mix.bpf) {
717 s->mix.buf.used < s->round * s->mix.bpf) ||
720 s->round * s->sub.bpf)) {
726 s->delta -= s->round;
763 d->encbuf, d->round);
787 (long long)s->delta * d->round +
788 (long long)delta * s->round;
789 s->delta = pos / (int)d->round;
790 s->delta_rem = pos % d->round;
792 s->delta_rem += d->round;
835 unsigned int mode, unsigned int bufsz, unsigned int round,
852 d->reqround = round;
905 d->rbuf = xmalloc(d->round * d->rchan * sizeof(adata_t));
910 d->decbuf = xmalloc(d->round * d->rchan * d->par.bps);
920 d->psize = d->bufsz + d->round;
927 d->encbuf = xmalloc(d->round * d->pchan * d->par.bps);
936 memset(d->rbuf, 0, d->round * d->rchan * sizeof(adata_t));
944 d->bufsz / d->round, d->round);
956 d->round = d->reqround;
1150 return (d->round * newrate + d->rate / 2) / d->rate;
1188 if (((long long)o->round * n->rate != (long long)n->round * o->rate) ||
1411 xmalloc(s->round * s->mix.nch * sizeof(adata_t));
1414 resamp_init(&s->mix.resamp, s->round, d->round,
1417 xmalloc(d->round * s->mix.nch * sizeof(adata_t));
1444 resamp_init(&s->sub.resamp, d->round, s->round,
1447 xmalloc(d->round * s->sub.nch * sizeof(adata_t));
1452 xmalloc(s->round * s->sub.nch * sizeof(adata_t));
1474 d->round * s->sub.nch * sizeof(adata_t));
1477 s->round * s->sub.nch * sizeof(adata_t));
1633 s->round = s->opt->dev->round;
1758 (long long)s->delta * d->round +
1759 (long long)d->delta * s->round;
1760 s->delta = pos / (int)d->round;
1761 s->delta_rem = pos % d->round;
1763 s->delta_rem += d->round;
1769 s->name, s->unit, s->delta, s->delta_rem, s->round);
1828 s->appbufsz / s->round, s->round);
1836 s->sub.prime = d->bufsz / d->round;
1844 s->delta = -(long long)d->bufsz * s->round / d->round;
1880 (long long)s->delta * d->round -
1881 (long long)d->delta * s->round;
1882 s->delta = pos / (int)d->round;
1883 s->delta_rem = pos % d->round;
1885 s->delta_rem += d->round;
1891 s->name, s->unit, s->delta, s->delta_rem, d->round);