Patchwork speex: enable floating point support

login
register
mail settings
Submitter Fahad Arslan
Date Jan. 15, 2014, 9:14 a.m.
Message ID <1389777270-58378-1-git-send-email-fahad_arslan@mentor.com>
Download mbox | patch
Permalink /patch/64801/
State New
Headers show

Comments

Fahad Arslan - Jan. 15, 2014, 9:14 a.m.
From: Fahad Arslan <Fahad_Arslan@mentor.com>

Speex configured in fixed point mode is not able to covert flaot
input in range of +/-1 passed by Pulseaudio. As a result streams
that need to be resampled are not playedback (no voice). Avoid
this situation by configuring Speex in floating point mode.

Signed-off-by: Fahad Arslan <Fahad_Arslan@mentor.com>
---
 meta/recipes-multimedia/speex/speex_1.2rc1.bb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Koen Kooi - Jan. 15, 2014, 10:02 a.m.
Op 15 jan. 2014, om 10:14 heeft Fahad Arslan <fahad_arslan@mentor.com> het volgende geschreven:

> From: Fahad Arslan <Fahad_Arslan@mentor.com>
> 
> Speex configured in fixed point mode is not able to covert flaot
> input in range of +/-1 passed by Pulseaudio. As a result streams
> that need to be resampled are not playedback (no voice). Avoid
> this situation by configuring Speex in floating point mode.

As pointed out before, this makes speex unusable on systems without an FPU

Patch

diff --git a/meta/recipes-multimedia/speex/speex_1.2rc1.bb b/meta/recipes-multimedia/speex/speex_1.2rc1.bb
index 5de0169..f1ea547 100644
--- a/meta/recipes-multimedia/speex/speex_1.2rc1.bb
+++ b/meta/recipes-multimedia/speex/speex_1.2rc1.bb
@@ -18,6 +18,6 @@  PARALLEL_MAKE = ""
 
 inherit autotools pkgconfig lib_package
 
-EXTRA_OECONF = " --enable-fixed-point --with-ogg-libraries=${STAGING_LIBDIR} \
-                 --disable-float-api --disable-vbr \
+EXTRA_OECONF = " --with-ogg-libraries=${STAGING_LIBDIR} \
+                 --enable-float-api --disable-vbr \
                  --with-ogg-includes=${STAGING_INCDIR} --disable-oggtest"