mirror of https://github.com/ericonr/sndio.git
sndiod: Don't set constant {slot,dev}_cmin parameters.
This commit is contained in:
parent
426a9064fa
commit
e20bc384e3
|
@ -627,9 +627,7 @@ sock_setpar(struct sock *f)
|
||||||
rchan = 1;
|
rchan = 1;
|
||||||
else if (rchan > NCHAN_MAX)
|
else if (rchan > NCHAN_MAX)
|
||||||
rchan = NCHAN_MAX;
|
rchan = NCHAN_MAX;
|
||||||
s->sub.slot_cmin = s->opt->rmin;
|
|
||||||
s->sub.slot_cmax = s->opt->rmin + rchan - 1;
|
s->sub.slot_cmax = s->opt->rmin + rchan - 1;
|
||||||
s->sub.dev_cmin = s->opt->rmin;
|
|
||||||
s->sub.dev_cmax = s->opt->rmax;
|
s->sub.dev_cmax = s->opt->rmax;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (log_level >= 3) {
|
if (log_level >= 3) {
|
||||||
|
@ -651,9 +649,7 @@ sock_setpar(struct sock *f)
|
||||||
pchan = 1;
|
pchan = 1;
|
||||||
else if (pchan > NCHAN_MAX)
|
else if (pchan > NCHAN_MAX)
|
||||||
pchan = NCHAN_MAX;
|
pchan = NCHAN_MAX;
|
||||||
s->mix.slot_cmin = s->opt->pmin;
|
|
||||||
s->mix.slot_cmax = s->opt->pmin + pchan - 1;
|
s->mix.slot_cmax = s->opt->pmin + pchan - 1;
|
||||||
s->mix.dev_cmin = s->opt->pmin;
|
|
||||||
s->mix.dev_cmax = s->opt->pmax;
|
s->mix.dev_cmax = s->opt->pmax;
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
if (log_level >= 3) {
|
if (log_level >= 3) {
|
||||||
|
|
Loading…
Reference in New Issue