diff options
Diffstat (limited to 'audio-drivers/libffado/libffado-atomic_ops.patch')
-rw-r--r-- | audio-drivers/libffado/libffado-atomic_ops.patch | 101 |
1 files changed, 101 insertions, 0 deletions
diff --git a/audio-drivers/libffado/libffado-atomic_ops.patch b/audio-drivers/libffado/libffado-atomic_ops.patch new file mode 100644 index 0000000000..f195119eea --- /dev/null +++ b/audio-drivers/libffado/libffado-atomic_ops.patch @@ -0,0 +1,101 @@ +Index: src/libieee1394/CycleTimerHelper.cpp +=================================================================== +--- src/libieee1394/CycleTimerHelper.cpp (Revision 1319) ++++ src/libieee1394/CycleTimerHelper.cpp (Arbeitskopie) +@@ -27,7 +27,6 @@ + #include "ieee1394service.h" + #include "libutil/PosixThread.h" + #include "libutil/PosixMutex.h" +-#include "libutil/Atomic.h" + #include "libutil/Watchdog.h" + + #define DLL_PI (3.141592653589793238) +Index: src/libieee1394/IsoHandlerManager.cpp +=================================================================== +--- src/libieee1394/IsoHandlerManager.cpp (Revision 1319) ++++ src/libieee1394/IsoHandlerManager.cpp (Arbeitskopie) +@@ -27,7 +27,7 @@ + #include "cycletimer.h" + #include "libstreaming/generic/StreamProcessor.h" + +-#include "libutil/Atomic.h" ++#include <atomic_ops.h> + #include "libutil/PosixThread.h" + #include "libutil/SystemTimeSource.h" + #include "libutil/Watchdog.h" +@@ -82,7 +82,7 @@ + IsoTask::requestShadowMapUpdate() + { + debugOutput(DEBUG_LEVEL_VERBOSE, "(%p) enter\n", this); +- INC_ATOMIC(&request_update); ++ AO_fetch_and_add1(&request_update); + + // get the thread going again + signalActivity(); +@@ -227,7 +227,7 @@ + // if some other thread requested a shadow map update, do it + if(request_update) { + updateShadowMapHelper(); +- DEC_ATOMIC(&request_update); // ack the update ++ AO_fetch_and_sub1(&request_update); // ack the update + assert(request_update >= 0); + } + +Index: src/libieee1394/IsoHandlerManager.h +=================================================================== +--- src/libieee1394/IsoHandlerManager.h (Revision 1319) ++++ src/libieee1394/IsoHandlerManager.h (Arbeitskopie) +@@ -31,6 +31,7 @@ + + #include "IsoHandler.h" + ++#include <atomic_ops.h> + #include <sys/poll.h> + #include <errno.h> + #include <vector> +@@ -94,7 +95,7 @@ + IsoHandlerManager& m_manager; + + // the event request structure +- int32_t request_update; ++ AO_t request_update; + + // static allocation due to RT constraints + // this is the map used by the actual thread +Index: src/libstreaming/generic/StreamProcessor.cpp +=================================================================== +--- src/libstreaming/generic/StreamProcessor.cpp (Revision 1319) ++++ src/libstreaming/generic/StreamProcessor.cpp (Arbeitskopie) +@@ -34,8 +34,6 @@ + + #include "libutil/Time.h" + +-#include "libutil/Atomic.h" +- + #include <assert.h> + #include <math.h> + +Index: src/libutil/Thread.h +=================================================================== +--- src/libutil/Thread.h (Revision 1319) ++++ src/libutil/Thread.h (Arbeitskopie) +@@ -53,7 +53,6 @@ + + #include "../debugmodule/debugmodule.h" + +-#include "Atomic.h" + #include <pthread.h> + #include <string> + +Index: src/libutil/TimestampedBuffer.cpp +=================================================================== +--- src/libutil/TimestampedBuffer.cpp (Revision 1319) ++++ src/libutil/TimestampedBuffer.cpp (Arbeitskopie) +@@ -23,7 +23,6 @@ + + #include "config.h" + +-#include "libutil/Atomic.h" + #include "libieee1394/cycletimer.h" + + #include "TimestampedBuffer.h" |