Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic #include mulaw.h for converter functions prototypes.



details:   https://anonhg.NetBSD.org/src/rev/6924c9b779a0
branches:  trunk
changeset: 516104:6924c9b779a0
user:      minoura <minoura%NetBSD.org@localhost>
date:      Tue Oct 16 04:36:56 2001 +0000

description:
#include mulaw.h for converter functions prototypes.

diffstat:

 sys/dev/ic/msm6258.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r ce8edd14be0c -r 6924c9b779a0 sys/dev/ic/msm6258.c
--- a/sys/dev/ic/msm6258.c      Tue Oct 16 04:17:54 2001 +0000
+++ b/sys/dev/ic/msm6258.c      Tue Oct 16 04:36:56 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msm6258.c,v 1.3 2001/05/03 02:09:11 minoura Exp $      */
+/*     $NetBSD: msm6258.c,v 1.4 2001/10/16 04:36:56 minoura Exp $      */
 
 /*
  * Copyright (c) 2001 Tetsuya Isaki. All rights reserved.
@@ -43,6 +43,7 @@
 #include <dev/audio_if.h>
 #include <dev/audiovar.h>
 #include <dev/auconv.h>
+#include <dev/mulaw.h>
 #include <dev/ic/msm6258var.h>
 
 
@@ -99,7 +100,7 @@
        register unsigned char b;
 
        a -= *y;
-       d = adpcm_estim[*x];
+       d = adpcm_estim[(int) *x];
        c = a * 4 * 1000;
        c /= d;
 
@@ -149,7 +150,7 @@
 static inline void
 adpcm2pcm_step(u_char b, short *y, char *x)
 {
-       *y += (short)(adpcm_estimindex[b] * adpcm_estim[*x]);
+       *y += (short)(adpcm_estimindex[b] * adpcm_estim[(int) *x]);
        *x += adpcm_estimindex_correct[b];
        if (*x < 0)
                *x = 0;



Home | Main Index | Thread Index | Old Index