Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Set the WAVCACHE_CHCTL_U8 flag for both specific...
details: https://anonhg.NetBSD.org/src/rev/71426d0bd62e
branches: trunk
changeset: 566196:71426d0bd62e
user: simonb <simonb%NetBSD.org@localhost>
date: Fri Apr 30 14:14:55 2004 +0000
description:
Set the WAVCACHE_CHCTL_U8 flag for both specific-endian unsigned
linear 8 bit encodings as well as for native.
Fixes problems with playing 8 bit .wav files on my Dell Inspiron 5000e.
diffstat:
sys/dev/pci/esm.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 86f4f7af6aee -r 71426d0bd62e sys/dev/pci/esm.c
--- a/sys/dev/pci/esm.c Fri Apr 30 13:34:48 2004 +0000
+++ b/sys/dev/pci/esm.c Fri Apr 30 14:14:55 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: esm.c,v 1.24 2004/04/23 21:13:06 itojun Exp $ */
+/* $NetBSD: esm.c,v 1.25 2004/04/30 14:14:55 simonb Exp $ */
/*-
* Copyright (c) 2002, 2003 Matt Fredette
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: esm.c,v 1.24 2004/04/23 21:13:06 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: esm.c,v 1.25 2004/04/30 14:14:55 simonb Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1086,8 +1086,13 @@
}
if (p->precision * p->factor == 8) {
aputype += 2;
- if (p->encoding == AUDIO_ENCODING_ULINEAR)
+ switch (p->encoding) {
+ case AUDIO_ENCODING_ULINEAR:
+ case AUDIO_ENCODING_ULINEAR_BE:
+ case AUDIO_ENCODING_ULINEAR_LE:
wcreg_tpl |= WAVCACHE_CHCTL_U8;
+ break;
+ }
}
ch->wcreg_tpl = wcreg_tpl;
ch->aputype = aputype;
Home |
Main Index |
Thread Index |
Old Index