Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/sys/arch/amiga/dev Pullup revision 1.26 (requested by m...



details:   https://anonhg.NetBSD.org/src/rev/3b0559256fe4
branches:  netbsd-1-5
changeset: 489356:3b0559256fe4
user:      mhitch <mhitch%NetBSD.org@localhost>
date:      Sun Sep 03 21:57:49 2000 +0000

description:
Pullup revision 1.26 (requested by mhitch, approved by jhawk)

  Log Message:
  Use the correct DMA pointer for the second channel on 14-bit byte-swapped
  conversion.  Fixes NULL pointer reference crash when playing 16 bit little
  endian audio.

diffstat:

 sys/arch/amiga/dev/aucc.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r a6a6ca0281c7 -r 3b0559256fe4 sys/arch/amiga/dev/aucc.c
--- a/sys/arch/amiga/dev/aucc.c Sun Sep 03 19:17:57 2000 +0000
+++ b/sys/arch/amiga/dev/aucc.c Sun Sep 03 21:57:49 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aucc.c,v 1.25 2000/03/16 16:37:20 kleink Exp $ */
+/*     $NetBSD: aucc.c,v 1.25.4.1 2000/09/03 21:57:49 mhitch Exp $     */
 
 /*
  * Copyright (c) 1999 Bernardo Innocenti
@@ -1286,7 +1286,7 @@
        int i;
 {
        u_char *ch0 = dmap[0];
-       u_char *ch3 = dmap[3];
+       u_char *ch3 = dmap[1];  /* XXX should be 3 */
 
        while (i--) {
                *ch3++ = *p++ >> 2;



Home | Main Index | Thread Index | Old Index