Fixed hw_params dump and a typo

This commit is contained in:
Abramo Bagnara 2000-12-29 22:10:02 +00:00
parent bd80fd0b06
commit 6171d0fc20
3 changed files with 4 additions and 4 deletions

View file

@ -25,7 +25,7 @@
#include <assert.h>
#include "asoundlib.h"
#define MASK_MAX 32
#define MASK_MAX 31
#ifdef MASK_INLINE
#include "mask_inline.h"

View file

@ -29,7 +29,7 @@
#endif
#ifndef MASK_MASK
#define MASK_MAX 32
#define MASK_MAX 31
#endif
struct _mask {

View file

@ -806,12 +806,12 @@ void snd_pcm_hw_param_dump(const snd_pcm_hw_params_t *params,
fputs(" ALL", fp);
else {
unsigned int k;
const char *(*f)(unsigned int k);
f = funcs[var];
for (k = 0; k <= MASK_MAX; ++k) {
if (mask_test(mask, k)) {
const char *(*f)(unsigned int k);
putc(' ', fp);
assert(var < sizeof(funcs) / sizeof(funcs[0]));
f = funcs[k];
assert(f);
fputs(f(k), fp);
}