pulseaudio: turn off eleet a5m 0ptimiZ4ti0nZ in thumb mode
authorPhil Blundell <philb@gnu.org>
Sun, 20 Sep 2009 07:03:36 +0000 (08:03 +0100)
committerPhil Blundell <philb@gnu.org>
Sun, 20 Sep 2009 07:03:36 +0000 (08:03 +0100)
recipes/pulseaudio/pulseaudio-0.9.15/sbc-thumb.patch [new file with mode: 0644]
recipes/pulseaudio/pulseaudio_0.9.15.bb

diff --git a/recipes/pulseaudio/pulseaudio-0.9.15/sbc-thumb.patch b/recipes/pulseaudio/pulseaudio-0.9.15/sbc-thumb.patch
new file mode 100644 (file)
index 0000000..8a2bc84
--- /dev/null
@@ -0,0 +1,11 @@
+--- f/src/modules/bluetooth/sbc_math.h~        2008-03-05 20:18:03.000000000 +0000
++++ f/src/modules/bluetooth/sbc_math.h 2008-10-27 13:39:27.000000000 +0000
+@@ -59,7 +59,7 @@
+ #define SBC_FIXED_0(val) { val = 0; }
+ #define MUL(a, b)        ((a) * (b))
+-#ifdef __arm__
++#if defined(__arm__) && !defined(__thumb__)
+ #define MULA(a, b, res) ({                            \
+               int tmp = res;                  \
+               __asm__(                                \
index 639e449..64ca916 100644 (file)
@@ -14,6 +14,7 @@ SRC_URI += "\
   file://gettext.patch;patch=1 \
   file://fixbluezbuild.patch;patch=1 \
   file://tls_m4.patch;patch=1 \
+  file://sbc-thumb.patch;patch=1 \
 "
 
 do_compile_prepend() {