diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-06-02 18:06:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-06-02 18:06:35 +0000 |
commit | 593ede1657809e2018493adf7cb73ba4c8d3b3b8 (patch) | |
tree | 74786f70aafc9ee0c78320cc931a6c7cbaa6fe48 /sys/dev/microcode/esa | |
parent | bf57fce309501fcdf7dcb3f41a92d1c7dbfebb7e (diff) |
The two "firmware" arrays only contained 16 bit values, but were being
being stored in an array of 32 bits. waste of memory. The bandpass
filter table only contained 16 bit values, but was being treaded as if it
was in an array of 32 bit values, thus what was being loaded into the chip
was totally wrong and this probably explains why I remember it sounded
horrid.
Not tested on real hardware; incorrect array accesses discovered by Parfait
ok oga
Diffstat (limited to 'sys/dev/microcode/esa')
-rw-r--r-- | sys/dev/microcode/esa/esadsp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/microcode/esa/esadsp.h b/sys/dev/microcode/esa/esadsp.h index 52221edf3b4..632890d7dd2 100644 --- a/sys/dev/microcode/esa/esadsp.h +++ b/sys/dev/microcode/esa/esadsp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: esadsp.h,v 1.2 2003/06/26 00:53:43 mickey Exp $ */ +/* $OpenBSD: esadsp.h,v 1.3 2009/06/02 18:06:34 deraadt Exp $ */ /* $NetBSD: esadsp.h,v 1.4 2002/01/07 07:33:09 jmcneill Exp $ */ /* @@ -94,7 +94,7 @@ static const struct rec_vals { { ESA_SRC3_DIRECTION_OFFSET + 22, 0xff} }; -static const u_int32_t esa_assp_kernel_image[] = { +static const u_int16_t esa_assp_kernel_image[] = { 0x7980, 0x0030, 0x7980, 0x03b4, 0x7980, 0x03b4, 0x7980, 0x00fb, 0x7980, 0x00dd, 0x7980, 0x03b4, 0x7980, 0x0332, 0x7980, 0x0287, 0x7980, 0x03b4, 0x7980, 0x03b4, 0x7980, 0x03b4, 0x7980, 0x03b4, @@ -216,7 +216,7 @@ static const u_int32_t esa_assp_kernel_image[] = { 0x0267, 0x0368, 0x0469, 0x056a, 0xbe3a, }; -static const u_int32_t esa_assp_minisrc_image[] = { +static const u_int16_t esa_assp_minisrc_image[] = { 0xbf80, 0x101e, 0x906e, 0x006e, 0x8b88, 0x6980, 0xef88, 0x906f, 0x0d6f, 0x6900, 0xeb08, 0x0412, 0xbc20, 0x696e, 0xb801, 0x906e, 0x7980, 0x0403, 0xb90e, |