[SCM] ffado/master: Add fix for FTBFS on Big Endian machines

adiknoth-guest at users.alioth.debian.org adiknoth-guest at users.alioth.debian.org
Thu Jun 28 14:38:23 UTC 2012


The following commit has been merged in the master branch:
commit 05476cf71213a824f24bea6294f8332aeadd22b5
Author: Adrian Knoth <adi at drcomp.erfurt.thur.de>
Date:   Thu Jun 28 16:07:41 2012 +0200

    Add fix for FTBFS on Big Endian machines

diff --git a/debian/patches/fix_ftbfs_bigendian.patch b/debian/patches/fix_ftbfs_bigendian.patch
new file mode 100644
index 0000000..cf910e5
--- /dev/null
+++ b/debian/patches/fix_ftbfs_bigendian.patch
@@ -0,0 +1,41 @@
+From: Adrian Knoth <adi at drcomp.erfurt.thur.de>
+Forwarded: not-needed
+Origin: http://subversion.ffado.org/changeset/2169
+Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678347
+Description: Fix FTBFS on Big Endian platforms
+--- a/src/rme/rme_avdevice.cpp
++++ b/src/rme/rme_avdevice.cpp
+@@ -61,27 +61,21 @@
+ // opposed to bus order, which is big endian).  Therefore define our own
+ // 32-bit byteswap function to do this.
+ #if __BYTE_ORDER == __BIG_ENDIAN
+-static inline uint32_t
+-ByteSwapToDevice32(uint32_t d)
+-{
+-    return byteswap_32(d);
+-}
+-ByteSwapFromDevice32(uint32_t d)
+-{
+-    return byteswap_32(d);
+-}
++#define RME_BYTESWAP32(x)	ByteSwap32(x)
+ #else
++#define RME_BYTESWAP32(x)	(x)
++#endif
++
+ static inline uint32_t
+ ByteSwapToDevice32(uint32_t d)
+ {
+-    return d;
++    return RME_BYTESWAP32(d);
+ }
+ static inline uint32_t
+ ByteSwapFromDevice32(uint32_t d)
+ {
+-    return d;
++    return RME_BYTESWAP32(d);
+ }
+-#endif
+ 
+ Device::Device( DeviceManager& d,
+                       std::auto_ptr<ConfigRom>( configRom ))

-- 
Free Firewire Audio Drivers (ffado.org) packaging



More information about the pkg-multimedia-commits mailing list