diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-06-21 05:17:49 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-06-21 05:17:49 +0000 |
commit | 6800112f4b52c737bd16f3e8fa7071b6629c6038 (patch) | |
tree | ad14337380ecd25583bbef5b1e4f3dd1244adbbb /sys/dev | |
parent | 15a5d7571cc41a44f92f0090a308d981565b79ba (diff) |
make sure to return and indicate an error when an invalid PCM format
is found.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/azalia.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index 3e4a70f2668..de94553d164 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.c,v 1.15 2006/06/17 18:33:27 brad Exp $ */ +/* $OpenBSD: azalia.c,v 1.16 2006/06/21 05:17:48 brad Exp $ */ /* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */ /*- @@ -1148,9 +1148,7 @@ azalia_codec_construct_format(codec_t *this, int newdac, int newadc) if (nbits == 0) { printf("%s: %s/%d invalid PCM format: 0x%8.8x\n", XNAME(this->az), __FILE__, __LINE__, bits_rates); -#if 0 return -1; -#endif } rvariation = group->nconv * nbits; |