summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-06-04 06:03:12 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-06-04 06:03:12 +0000
commit90cf64e0e5bef1040754d436e605ecc9f22cb97e (patch)
tree4a82b90bdfdc56b63ca383db206d3aa71296dc64 /sys/dev
parent5025c54c5b06c4872763d1021070d085245e5fd1 (diff)
remove the now unused alawtolin16 table
ok ratchov@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/mulaw.c69
1 files changed, 1 insertions, 68 deletions
diff --git a/sys/dev/mulaw.c b/sys/dev/mulaw.c
index 36477f319e0..e34d0028f08 100644
--- a/sys/dev/mulaw.c
+++ b/sys/dev/mulaw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mulaw.c,v 1.16 2015/05/11 06:46:21 ratchov Exp $ */
+/* $OpenBSD: mulaw.c,v 1.17 2015/06/04 06:03:11 jsg Exp $ */
/* $NetBSD: mulaw.c,v 1.15 2001/01/18 20:28:20 jdolecek Exp $ */
/*
@@ -145,73 +145,6 @@ static const u_char lintomulaw[256] = {
0x81, 0x81, 0x81, 0x81, 0x80, 0x80, 0x80, 0x80,
};
-static const u_char alawtolin16[256][2] = {
- {0x6a,0x80}, {0x6b,0x80}, {0x68,0x80}, {0x69,0x80},
- {0x6e,0x80}, {0x6f,0x80}, {0x6c,0x80}, {0x6d,0x80},
- {0x62,0x80}, {0x63,0x80}, {0x60,0x80}, {0x61,0x80},
- {0x66,0x80}, {0x67,0x80}, {0x64,0x80}, {0x65,0x80},
- {0x75,0x40}, {0x75,0xc0}, {0x74,0x40}, {0x74,0xc0},
- {0x77,0x40}, {0x77,0xc0}, {0x76,0x40}, {0x76,0xc0},
- {0x71,0x40}, {0x71,0xc0}, {0x70,0x40}, {0x70,0xc0},
- {0x73,0x40}, {0x73,0xc0}, {0x72,0x40}, {0x72,0xc0},
- {0x2a,0x00}, {0x2e,0x00}, {0x22,0x00}, {0x26,0x00},
- {0x3a,0x00}, {0x3e,0x00}, {0x32,0x00}, {0x36,0x00},
- {0x0a,0x00}, {0x0e,0x00}, {0x02,0x00}, {0x06,0x00},
- {0x1a,0x00}, {0x1e,0x00}, {0x12,0x00}, {0x16,0x00},
- {0x55,0x00}, {0x57,0x00}, {0x51,0x00}, {0x53,0x00},
- {0x5d,0x00}, {0x5f,0x00}, {0x59,0x00}, {0x5b,0x00},
- {0x45,0x00}, {0x47,0x00}, {0x41,0x00}, {0x43,0x00},
- {0x4d,0x00}, {0x4f,0x00}, {0x49,0x00}, {0x4b,0x00},
- {0x7e,0xa8}, {0x7e,0xb8}, {0x7e,0x88}, {0x7e,0x98},
- {0x7e,0xe8}, {0x7e,0xf8}, {0x7e,0xc8}, {0x7e,0xd8},
- {0x7e,0x28}, {0x7e,0x38}, {0x7e,0x08}, {0x7e,0x18},
- {0x7e,0x68}, {0x7e,0x78}, {0x7e,0x48}, {0x7e,0x58},
- {0x7f,0xa8}, {0x7f,0xb8}, {0x7f,0x88}, {0x7f,0x98},
- {0x7f,0xe8}, {0x7f,0xf8}, {0x7f,0xc8}, {0x7f,0xd8},
- {0x7f,0x28}, {0x7f,0x38}, {0x7f,0x08}, {0x7f,0x18},
- {0x7f,0x68}, {0x7f,0x78}, {0x7f,0x48}, {0x7f,0x58},
- {0x7a,0xa0}, {0x7a,0xe0}, {0x7a,0x20}, {0x7a,0x60},
- {0x7b,0xa0}, {0x7b,0xe0}, {0x7b,0x20}, {0x7b,0x60},
- {0x78,0xa0}, {0x78,0xe0}, {0x78,0x20}, {0x78,0x60},
- {0x79,0xa0}, {0x79,0xe0}, {0x79,0x20}, {0x79,0x60},
- {0x7d,0x50}, {0x7d,0x70}, {0x7d,0x10}, {0x7d,0x30},
- {0x7d,0xd0}, {0x7d,0xf0}, {0x7d,0x90}, {0x7d,0xb0},
- {0x7c,0x50}, {0x7c,0x70}, {0x7c,0x10}, {0x7c,0x30},
- {0x7c,0xd0}, {0x7c,0xf0}, {0x7c,0x90}, {0x7c,0xb0},
- {0x95,0x80}, {0x94,0x80}, {0x97,0x80}, {0x96,0x80},
- {0x91,0x80}, {0x90,0x80}, {0x93,0x80}, {0x92,0x80},
- {0x9d,0x80}, {0x9c,0x80}, {0x9f,0x80}, {0x9e,0x80},
- {0x99,0x80}, {0x98,0x80}, {0x9b,0x80}, {0x9a,0x80},
- {0x8a,0xc0}, {0x8a,0x40}, {0x8b,0xc0}, {0x8b,0x40},
- {0x88,0xc0}, {0x88,0x40}, {0x89,0xc0}, {0x89,0x40},
- {0x8e,0xc0}, {0x8e,0x40}, {0x8f,0xc0}, {0x8f,0x40},
- {0x8c,0xc0}, {0x8c,0x40}, {0x8d,0xc0}, {0x8d,0x40},
- {0xd6,0x00}, {0xd2,0x00}, {0xde,0x00}, {0xda,0x00},
- {0xc6,0x00}, {0xc2,0x00}, {0xce,0x00}, {0xca,0x00},
- {0xf6,0x00}, {0xf2,0x00}, {0xfe,0x00}, {0xfa,0x00},
- {0xe6,0x00}, {0xe2,0x00}, {0xee,0x00}, {0xea,0x00},
- {0xab,0x00}, {0xa9,0x00}, {0xaf,0x00}, {0xad,0x00},
- {0xa3,0x00}, {0xa1,0x00}, {0xa7,0x00}, {0xa5,0x00},
- {0xbb,0x00}, {0xb9,0x00}, {0xbf,0x00}, {0xbd,0x00},
- {0xb3,0x00}, {0xb1,0x00}, {0xb7,0x00}, {0xb5,0x00},
- {0x81,0x58}, {0x81,0x48}, {0x81,0x78}, {0x81,0x68},
- {0x81,0x18}, {0x81,0x08}, {0x81,0x38}, {0x81,0x28},
- {0x81,0xd8}, {0x81,0xc8}, {0x81,0xf8}, {0x81,0xe8},
- {0x81,0x98}, {0x81,0x88}, {0x81,0xb8}, {0x81,0xa8},
- {0x80,0x58}, {0x80,0x48}, {0x80,0x78}, {0x80,0x68},
- {0x80,0x18}, {0x80,0x08}, {0x80,0x38}, {0x80,0x28},
- {0x80,0xd8}, {0x80,0xc8}, {0x80,0xf8}, {0x80,0xe8},
- {0x80,0x98}, {0x80,0x88}, {0x80,0xb8}, {0x80,0xa8},
- {0x85,0x60}, {0x85,0x20}, {0x85,0xe0}, {0x85,0xa0},
- {0x84,0x60}, {0x84,0x20}, {0x84,0xe0}, {0x84,0xa0},
- {0x87,0x60}, {0x87,0x20}, {0x87,0xe0}, {0x87,0xa0},
- {0x86,0x60}, {0x86,0x20}, {0x86,0xe0}, {0x86,0xa0},
- {0x82,0xb0}, {0x82,0x90}, {0x82,0xf0}, {0x82,0xd0},
- {0x82,0x30}, {0x82,0x10}, {0x82,0x70}, {0x82,0x50},
- {0x83,0xb0}, {0x83,0x90}, {0x83,0xf0}, {0x83,0xd0},
- {0x83,0x30}, {0x83,0x10}, {0x83,0x70}, {0x83,0x50},
-};
-
void
mulaw_to_slinear8(void *v, u_char *p, int cc)
{