Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/iomd The VIDC20 data sheet doesn't define the p...
details: https://anonhg.NetBSD.org/src/rev/cd1e03f15382
branches: trunk
changeset: 557506:cd1e03f15382
user: bjh21 <bjh21%NetBSD.org@localhost>
date: Sat Jan 10 22:33:24 2004 +0000
description:
The VIDC20 data sheet doesn't define the polarity of the sign bit for
8-bit VIDC audio. Both Richard Earnshaw and I had guessed that a set
bit was positive (the same as normal mu-law), but the AudioWorks
manual, and Sound_SoundLog on RISC OS, seem to disagree. Change
MULAW_TO_VIDC to match Sound_SoundLog, since the latter is probably
definitive.
diffstat:
sys/arch/arm/iomd/vidcaudio.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r cca6ec6f49db -r cd1e03f15382 sys/arch/arm/iomd/vidcaudio.c
--- a/sys/arch/arm/iomd/vidcaudio.c Sat Jan 10 21:38:32 2004 +0000
+++ b/sys/arch/arm/iomd/vidcaudio.c Sat Jan 10 22:33:24 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vidcaudio.c,v 1.32 2004/01/03 14:53:16 chris Exp $ */
+/* $NetBSD: vidcaudio.c,v 1.33 2004/01/10 22:33:24 bjh21 Exp $ */
/*
* Copyright (c) 1995 Melvin Tang-Richardson
@@ -65,7 +65,7 @@
#include <sys/param.h> /* proc.h */
-__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.32 2004/01/03 14:53:16 chris Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vidcaudio.c,v 1.33 2004/01/10 22:33:24 bjh21 Exp $");
#include <sys/audioio.h>
#include <sys/conf.h> /* autoconfig functions */
@@ -312,7 +312,7 @@
return 0;
}
-#define MULAW_TO_VIDC(m) (~(m) << 1 | (m) >> 7)
+#define MULAW_TO_VIDC(m) (~((m) << 1 | (m) >> 7))
static void
mulaw_to_vidc(void *v, u_char *p, int cc)
Home |
Main Index |
Thread Index |
Old Index