Bug#486308: jack-audio-connection-kit: Endian problem w/ 24bit (LE) interface and BE CPU
Package: jack-audio-connection-kit
Severity: important
Hi,
with a 24bit (LE) interface on powerpc (BE), I got endian problems. Fixed
with the attached patch. Already forwarded to upstream (jack-devel@jackaudio.org).
Roland
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: powerpc (ppc)
Kernel: Linux 2.6.25-2-powerpc
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8)
Shell: /bin/sh linked to /bin/bash
--- drivers/alsa/memops.c.orig 2008-06-14 23:33:04.000000000 +0200
+++ drivers/alsa/memops.c 2008-06-14 23:33:24.000000000 +0200
@@ -454,7 +454,7 @@
x <<= 8;
x |= (unsigned char)(src[0]);
/* correct sign bit and the rest of the top byte */
- if (src[0] & 0x80) {
+ if (src[2] & 0x80) {
x |= 0xff << 24;
}
#endif
Reply to: