libffado-2.4.0-rme-bigendian-fix.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ------------------------------------------------------------------------
  2. r2724 | jwoithe | 2018-01-05 18:33:39 +0900 (Fri, 05 Jan 2018) | 8 lines
  3. RME: ensure byte swap macros are available for all components.
  4. The byte swap macros (ByteSwap32() in particular) are required on big-endian
  5. architectures for more than just the rme_avdevice module. Including these
  6. in the RME device header file is a reasonable way to fix this.
  7. Patch from Orcan Ogetbil via the ffado-devel mailing list.
  8. Index: SConstruct
  9. ===================================================================
  10. --- a/SConstruct (revision 2723)
  11. +++ b/SConstruct (revision 2724)
  12. @@ -29,6 +29,7 @@
  13. from subprocess import Popen, PIPE
  14. import os
  15. import re
  16. +import sys
  17. from string import Template
  18. import imp
  19. import distutils.sysconfig
  20. Index: src/rme/rme_avdevice.cpp
  21. ===================================================================
  22. --- a/src/rme/rme_avdevice.cpp (revision 2723)
  23. +++ b/src/rme/rme_avdevice.cpp (revision 2724)
  24. @@ -42,7 +42,6 @@
  25. #include <stdint.h>
  26. #include <assert.h>
  27. #include <unistd.h>
  28. -#include "libutil/ByteSwap.h"
  29. #include <iostream>
  30. #include <sstream>
  31. Index: src/rme/rme_avdevice.h
  32. ===================================================================
  33. --- a/src/rme/rme_avdevice.h (revision 2723)
  34. +++ b/src/rme/rme_avdevice.h (revision 2724)
  35. @@ -31,6 +31,7 @@
  36. #include "libavc/avc_definitions.h"
  37. #include "libutil/Configuration.h"
  38. +#include "libutil/ByteSwap.h"
  39. #include "fireface_def.h"
  40. #include "libstreaming/rme/RmeReceiveStreamProcessor.h"
  41. ------------------------------------------------------------------------