Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev auconv_exact_match: don't check precision, validbits...
details: https://anonhg.NetBSD.org/src/rev/ba36872e57f5
branches: trunk
changeset: 769360:ba36872e57f5
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Sep 07 00:11:58 2011 +0000
description:
auconv_exact_match: don't check precision, validbits, or channels for AC3
diffstat:
sys/dev/auconv.c | 20 +++++++++++---------
1 files changed, 11 insertions(+), 9 deletions(-)
diffs (42 lines):
diff -r ee451114646f -r ba36872e57f5 sys/dev/auconv.c
--- a/sys/dev/auconv.c Tue Sep 06 22:41:53 2011 +0000
+++ b/sys/dev/auconv.c Wed Sep 07 00:11:58 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: auconv.c,v 1.23 2011/09/06 01:16:44 jmcneill Exp $ */
+/* $NetBSD: auconv.c,v 1.24 2011/09/07 00:11:58 jmcneill Exp $ */
/*
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: auconv.c,v 1.23 2011/09/06 01:16:44 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: auconv.c,v 1.24 2011/09/07 00:11:58 jmcneill Exp $");
#include <sys/types.h>
#include <sys/audioio.h>
@@ -826,14 +826,16 @@
/**
* XXX we need encoding-dependent check.
* XXX Is to check precision/channels meaningful for
- * MPEG/AC3 encodings?
+ * MPEG encodings?
*/
- if (formats[i].validbits != param->validbits)
- continue;
- if (formats[i].precision != param->precision)
- continue;
- if (formats[i].channels != param->channels)
- continue;
+ if (enc != AUDIO_ENCODING_AC3) {
+ if (formats[i].validbits != param->validbits)
+ continue;
+ if (formats[i].precision != param->precision)
+ continue;
+ if (formats[i].channels != param->channels)
+ continue;
+ }
if (!auconv_is_supported_rate(&formats[i],
param->sample_rate))
continue;
Home |
Main Index |
Thread Index |
Old Index