Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/dreamcast/dev/g2 LINEAR and LINEAR_LE need to be in...
details: https://anonhg.NetBSD.org/src/rev/44f1e4584a00
branches: trunk
changeset: 550901:44f1e4584a00
user: marcus <marcus%NetBSD.org@localhost>
date: Sun Aug 24 19:52:46 2003 +0000
description:
LINEAR and LINEAR_LE need to be interchangeable (fixes 8bit unsigned bug).
diffstat:
sys/arch/dreamcast/dev/g2/aica.c | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diffs (50 lines):
diff -r 4614812890ec -r 44f1e4584a00 sys/arch/dreamcast/dev/g2/aica.c
--- a/sys/arch/dreamcast/dev/g2/aica.c Sun Aug 24 19:44:29 2003 +0000
+++ b/sys/arch/dreamcast/dev/g2/aica.c Sun Aug 24 19:52:46 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: aica.c,v 1.2 2003/08/24 19:44:29 marcus Exp $ */
+/* $NetBSD: aica.c,v 1.3 2003/08/24 19:52:46 marcus Exp $ */
/*
* Copyright (c) 2003 SHIMIZU Ryo <ryo%misakimix.org@localhost>
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: aica.c,v 1.2 2003/08/24 19:44:29 marcus Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aica.c,v 1.3 2003/08/24 19:52:46 marcus Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -489,25 +489,25 @@
sc->sc_precision = 4;
break;
- case AUDIO_ENCODING_SLINEAR:
- break;
- case AUDIO_ENCODING_ULINEAR:
- play->sw_code = change_sign8;
- break;
-
case AUDIO_ENCODING_SLINEAR_BE:
if (play->precision == 16)
play->sw_code = swap_bytes;
break;
case AUDIO_ENCODING_SLINEAR_LE:
+ case AUDIO_ENCODING_SLINEAR:
break;
case AUDIO_ENCODING_ULINEAR_BE:
if (play->precision == 16)
play->sw_code = swap_bytes_change_sign16_le;
+ else if(play->precision == 8)
+ play->sw_code = change_sign8;
break;
case AUDIO_ENCODING_ULINEAR_LE:
+ case AUDIO_ENCODING_ULINEAR:
if (play->precision == 16)
play->sw_code = change_sign16_le;
+ else if(play->precision == 8)
+ play->sw_code = change_sign8;
break;
case AUDIO_ENCODING_ULAW:
Home |
Main Index |
Thread Index |
Old Index