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 mulaw/alaw timing bugfix from Izum...



details:   https://anonhg.NetBSD.org/src/rev/95dfa95601d0
branches:  trunk
changeset: 550926:95dfa95601d0
user:      marcus <marcus%NetBSD.org@localhost>
date:      Mon Aug 25 18:48:31 2003 +0000

description:
mulaw/alaw timing bugfix from Izumi Tsutsui.

diffstat:

 sys/arch/dreamcast/dev/g2/aica.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (32 lines):

diff -r 4a19ef942871 -r 95dfa95601d0 sys/arch/dreamcast/dev/g2/aica.c
--- a/sys/arch/dreamcast/dev/g2/aica.c  Mon Aug 25 17:50:22 2003 +0000
+++ b/sys/arch/dreamcast/dev/g2/aica.c  Mon Aug 25 18:48:31 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aica.c,v 1.3 2003/08/24 19:52:46 marcus Exp $  */
+/*     $NetBSD: aica.c,v 1.4 2003/08/25 18:48:31 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.3 2003/08/24 19:52:46 marcus Exp $");
+__KERNEL_RCSID(0, "$NetBSD: aica.c,v 1.4 2003/08/25 18:48:31 marcus Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -511,11 +511,13 @@
                break;
 
        case AUDIO_ENCODING_ULAW:
+               play->factor = 2;
                play->sw_code = mulaw_to_slinear16_le;
                play->hw_precision = 16;
                sc->sc_precision = play->hw_precision;
                break;
        case AUDIO_ENCODING_ALAW:
+               play->factor = 2;
                play->sw_code = alaw_to_slinear16_le;
                play->hw_precision = 16;
                sc->sc_precision = play->hw_precision;



Home | Main Index | Thread Index | Old Index