[alsa-devel] [PATCH 0/2] fix softfloat handling
Hello,
this series of two patches fixes the softfloat handling within the alsa-lib. Please review and consider to apply.
cheers, Marc
Using --without-softfloat or --with-softfloat=no results in using softfloat. This patch fixes the problem.
Signed-off-by: Marc Kleine-Budde mkl@pengutronix.de --- configure.in | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/configure.in b/configure.in index cc8950f..040a3e7 100644 --- a/configure.in +++ b/configure.in @@ -206,9 +206,12 @@ AC_MSG_CHECKING(for softfloat) AC_ARG_WITH(softfloat, AS_HELP_STRING([--with-softfloat], [do you have floating point unit on this machine? (optional)]), - [ AC_DEFINE(HAVE_SOFT_FLOAT, "1", [Avoid calculation in float]) - softfloat=yes ],) + [case "$withval" in + y|yes) softfloat=yes ;; + *) softfloat=no ;; + esac],) if test "$softfloat" = "yes" ; then + AC_DEFINE(HAVE_SOFT_FLOAT, "1", [Avoid calculation in float]) AC_MSG_RESULT(yes) else AC_MSG_RESULT(no)
From: Michael Olbrich m.olbrich@pengutronix.de
simple_none.c uses HAVE_SOFT_FLOAT it has to include config.h for this to work properly.
Signed-off-by: Michael Olbrich m.olbrich@pengutronix.de Signed-off-by: Marc Kleine-Budde mkl@pengutronix.de --- src/mixer/simple_none.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/mixer/simple_none.c b/src/mixer/simple_none.c index 9259a08..426f2d7 100644 --- a/src/mixer/simple_none.c +++ b/src/mixer/simple_none.c @@ -40,6 +40,7 @@ #include <limits.h> #include <alsa/asoundlib.h> #include "mixer_simple.h" +#include "config.h"
#ifndef DOC_HIDDEN
On Mon, 16 Nov 2009, Marc Kleine-Budde wrote:
Hello,
this series of two patches fixes the softfloat handling within the alsa-lib. Please review and consider to apply.
Both patches are applied to alsa-lib git repo now. I changed slightly only first patch (removed tab/space combining). Thanks.
Jaroslav
----- Jaroslav Kysela perex@perex.cz Linux Kernel Sound Maintainer ALSA Project, Red Hat, Inc.
Jaroslav Kysela wrote:
On Mon, 16 Nov 2009, Marc Kleine-Budde wrote:
Hello,
this series of two patches fixes the softfloat handling within the alsa-lib. Please review and consider to apply.
Both patches are applied to alsa-lib git repo now. I changed slightly only first patch (removed tab/space combining). Thanks.
wow, that was fast, tnx Marc
participants (2)
-
Jaroslav Kysela
-
Marc Kleine-Budde