Changeset 2169
- Timestamp:
- 06/23/12 03:35:36 (12 years ago)
- Files:
-
- trunk/libffado/src/rme/rme_avdevice.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/src/rme/rme_avdevice.cpp
r2158 r2169 62 62 // 32-bit byteswap function to do this. 63 63 #if __BYTE_ORDER == __BIG_ENDIAN 64 #define RME_BYTESWAP32(x) ByteSwap32(x) 65 #else 66 #define RME_BYTESWAP32(x) (x) 67 #endif 68 64 69 static inline uint32_t 65 70 ByteSwapToDevice32(uint32_t d) 66 71 { 67 return byteswap_32(d); 68 } 69 ByteSwapFromDevice32(uint32_t d) 70 { 71 return byteswap_32(d); 72 } 73 #else 74 static inline uint32_t 75 ByteSwapToDevice32(uint32_t d) 76 { 77 return d; 72 return RME_BYTESWAP32(d); 78 73 } 79 74 static inline uint32_t 80 75 ByteSwapFromDevice32(uint32_t d) 81 76 { 82 return d; 83 } 84 #endif 77 return RME_BYTESWAP32(d); 78 } 85 79 86 80 Device::Device( DeviceManager& d,