mix
mix(a, b, c);
mix(a, b, c);
mix(a, b, c);
mix(a, b, c);
mix(a, b, c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
const struct escodec_mixer *mix;
if ((mix = escodec_get_mixer(mc->dev)) == NULL)
switch (mix->type) {
val = escodec_read(sc, mix->reg[ch]);
shift = 8 - fls(mix->mask[ch]);
if (mix->type == ESCODEC_MIXER_ATTENUATOR)
nvol = mix->mask[ch] - nvol;
if (mix->maxval != 0 && nvol > mix->maxval)
nvol = mix->maxval;
val &= ~(mix->mask[ch] << mix->shift[ch]);
val |= (nvol & mix->mask[ch]) << mix->shift[ch];
escodec_write(sc, mix->reg[ch], val);
val = escodec_read(sc, mix->reg[0]);
val |= mix->mask[0];
val &= ~mix->mask[0];
escodec_write(sc, mix->reg[0], val);
const struct escodec_mixer *mix;
if ((mix = escodec_get_mixer(mc->dev)) == NULL)
switch (mix->type) {
val = escodec_read(sc, mix->reg[ch]);
shift = 8 - fls(mix->mask[ch]);
nvol = (val >> mix->shift[ch]) & mix->mask[ch];
if (mix->type == ESCODEC_MIXER_ATTENUATOR)
nvol = mix->mask[ch] - nvol;
val = escodec_read(sc, mix->reg[0]);
mc->un.ord = (val & mix->mask[0]) != 0;
const struct escodec_mixer *mix;
if ((mix = escodec_get_mixer(di->index)) == NULL)
strlcpy(di->label.name, mix->name, sizeof(di->label.name));
di->mixer_class = mix->mixer_class;
di->next = mix->next;
di->prev = mix->prev;
switch (mix->type) {
256 / (mix->mask[0] + 1);
u_int32_t mix, step;
mix = hal->ah_gain.g_step->gos_param[0];
switch (mix) {
u_int32_t step, mix, level[4];
mix = ar5k_rfregs_op(rf, hal->ah_offset[7],
if (mix == 1) {
int mix;
mix = 1;
mix = 0;
if (ESS_USE_AUDIO1(sc->sc_model) && mix && src > 0x62)
if (mix)
mix(a, b, c);
mix(a, b, c);
mix(a, b, c);
mix(a, b, c);
mix(a, b, c);
cmap_do(struct cmap *p, adata_t *in, adata_t *out, int vol, int todo, int mix)
copy_func = mix ? cmap_add : cmap_copy;
cmap_init(&s->mix.cmap,
s->opt->pmin, s->opt->pmin + s->mix.nch - 1,
s->opt->pmin, s->opt->pmin + s->mix.nch - 1,
s->mix.decbuf = NULL;
s->mix.resampbuf = NULL;
dec_init(&s->mix.dec, &s->par, s->mix.nch);
s->mix.decbuf =
xmalloc(s->round * s->mix.nch * sizeof(adata_t));
resamp_init(&s->mix.resamp, s->round, d->round,
s->mix.nch);
s->mix.resampbuf =
xmalloc(d->round * s->mix.nch * sizeof(adata_t));
s->mix.bpf = s->par.bps * s->mix.nch;
abuf_init(&s->mix.buf, s->appbufsz * s->mix.bpf);
abuf_done(&s->mix.buf);
s->mix.nch = s->opt->pmax - s->opt->pmin + 1;
s->mix.vol = MIDI_TO_ADATA(s->app->vol);
s->opt->pmin, s->opt->pmin + s->mix.nch - 1,
if (s->mix.decbuf) {
xfree(s->mix.decbuf);
s->mix.decbuf = NULL;
if (s->mix.resampbuf) {
xfree(s->mix.resampbuf);
s->mix.resampbuf = NULL;
if (s->pstate == SLOT_START && s->mix.buf.used == s->mix.buf.len) {
if (s->mix.buf.used < s->round * s->mix.bpf)
abuf_rdiscard(&s->mix.buf, s->round * s->mix.bpf);
idata = (adata_t *)abuf_rgetblk(&s->mix.buf, &icount);
if (icount < s->round * s->mix.bpf) {
abuf_rdiscard(&s->mix.buf, s->round * s->mix.bpf);
if (s->mix.decbuf) {
dec_do(&s->mix.dec, (void *)in, s->mix.decbuf, s->round);
in = s->mix.decbuf;
if (s->mix.resampbuf) {
resamp_do(&s->mix.resamp,
in, s->mix.resampbuf, s->round, d->round);
in = s->mix.resampbuf;
cmap_do(&s->mix.cmap, in, odata,
ADATA_MUL(s->mix.weight, s->mix.vol),
abuf_rdiscard(&s->mix.buf, s->round * s->mix.bpf);
icmax = i->opt->pmin + i->mix.nch - 1;
jcmax = j->opt->pmin + j->mix.nch - 1;
i->mix.weight = d->master_enabled ?
logx(3, "slot%zu: set weight: %d / %d", i - slot_array, i->mix.weight,
int ocount, moffs, mix;
mix = 0;
ADATA_UNIT, d->round, mix++);
ADATA_UNIT, d->round, mix++);
s->mix.buf.used < s->round * s->mix.bpf) {
s->mix.buf.used < s->round * s->mix.bpf) ||
} mix;
cmap_do(struct cmap *p, adata_t *in, adata_t *out, int vol, int todo, int mix)
copy_func = mix ? cmap_add : cmap_copy;
s->mix.vol = MIDI_TO_ADATA(vol);
size *= f->slot->mix.bpf;
data = abuf_wgetblk(&f->slot->mix.buf, &count);
abuf_wcommit(&f->slot->mix.buf, n);
s->mix.nch = pchan;
if (s != NULL && size % s->mix.bpf != 0) {
f->ralign = s->round * s->mix.bpf;
f->ralign = s->round * s->mix.bpf;
if (f->ralign < s->round * s->mix.bpf) {
data = abuf_wgetblk(&s->mix.buf, &size);
enc_init(&conv, &s->par, s->mix.nch);
enc_sil_do(&conv, data, f->ralign / s->mix.bpf);
abuf_wcommit(&s->mix.buf, f->ralign);
f->ralign = s->round * s->mix.bpf;
m->u.par.pchan = htons(s->mix.nch);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);
mix(a,b,c);