diff --git a/aucat/aparams.c b/aucat/aparams.c index 401d93d..5ee05f0 100644 --- a/aucat/aparams.c +++ b/aucat/aparams.c @@ -45,6 +45,7 @@ int aparams_ctltovol[128] = { */ struct aparams aparams_none = { 1, 0, 0, 0, 0, 0, 0, 0 }; +#ifdef DEBUG /* * Generate a string corresponding to the encoding in par, * return the length of the resulting string. @@ -74,6 +75,7 @@ aparams_enctostr(struct aparams *par, char *ostr) *p++ = '\0'; return p - ostr - 1; } +#endif /* DEBUG */ /* * Parse an encoding string, examples: s8, u8, s16, s16le, s24be ... @@ -221,29 +223,6 @@ aparams_eqenc(struct aparams *par1, struct aparams *par2) return 1; } -/* - * Return true if both parameters are the same. - */ -int -aparams_eq(struct aparams *par1, struct aparams *par2) -{ - if (!aparams_eqenc(par1, par2) || - par1->cmin != par2->cmin || - par1->cmax != par2->cmax || - par1->rate != par2->rate) - return 0; - return 1; -} - -/* - * Return true if first channel range includes second range. - */ -int -aparams_subset(struct aparams *subset, struct aparams *set) -{ - return subset->cmin >= set->cmin && subset->cmax <= set->cmax; -} - /* * Grow channels range and sample rate of ``set'' in order ``subset'' to * become an actual subset of it. diff --git a/aucat/aproc.c b/aucat/aproc.c index 0640925..00db513 100644 --- a/aucat/aproc.c +++ b/aucat/aproc.c @@ -158,7 +158,7 @@ aproc_new(struct aproc_ops *ops, char *name) p = malloc(sizeof(struct aproc)); if (p == NULL) - err(1, name); + err(1, "%s", name); LIST_INIT(&p->ins); LIST_INIT(&p->outs); p->name = name;