mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added HAVE_SOFT_FLOAT (--with-softfloat)
This commit is contained in:
parent
c39d1a665d
commit
f23813b7e9
4 changed files with 24 additions and 0 deletions
8
INSTALL
8
INSTALL
|
|
@ -111,3 +111,11 @@ For platform names in the form cpu-vendor-os (or aliases for this)
|
||||||
you should look in 'config.guess' script. Target and all paths
|
you should look in 'config.guess' script. Target and all paths
|
||||||
used here are only examples and should not be directly applicable to
|
used here are only examples and should not be directly applicable to
|
||||||
your system.
|
your system.
|
||||||
|
|
||||||
|
Configuration for machines without FPU
|
||||||
|
--------------------------------------
|
||||||
|
|
||||||
|
If your machine does not have FP unit, you should use '--with-softfloat'
|
||||||
|
option. This option disables usage of float numbers in PCM route plugin.
|
||||||
|
ALSA could then leave much more CPU cycles for your applications, but you
|
||||||
|
could still need some floating point emulator.
|
||||||
|
|
|
||||||
|
|
@ -12,3 +12,6 @@
|
||||||
|
|
||||||
/* NDEBUG */
|
/* NDEBUG */
|
||||||
#undef NDEBUG
|
#undef NDEBUG
|
||||||
|
|
||||||
|
/* Do we have FPU on this machine? */
|
||||||
|
#undef HAVE_SOFT_FLOAT
|
||||||
|
|
|
||||||
|
|
@ -85,6 +85,7 @@ AC_HEADER_STDC
|
||||||
AM_CONFIG_HEADER(include/config.h)
|
AM_CONFIG_HEADER(include/config.h)
|
||||||
AC_CHECK_HEADERS(sound/asound.h)
|
AC_CHECK_HEADERS(sound/asound.h)
|
||||||
|
|
||||||
|
|
||||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||||
AC_C_CONST
|
AC_C_CONST
|
||||||
AC_C_INLINE
|
AC_C_INLINE
|
||||||
|
|
@ -120,6 +121,10 @@ else
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
AC_ARG_WITH(softfloat,
|
||||||
|
[ --with-softfloat do you have floating point unit on this machine? (optional)],
|
||||||
|
[ AC_DEFINE(HAVE_SOFT_FLOAT, "1")],)
|
||||||
|
|
||||||
dnl Check for architecture
|
dnl Check for architecture
|
||||||
AC_MSG_CHECKING(for architecture)
|
AC_MSG_CHECKING(for architecture)
|
||||||
case "$target" in
|
case "$target" in
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,8 @@
|
||||||
|
|
||||||
#ifndef __ALSA_PCM_PLUGIN_H
|
#ifndef __ALSA_PCM_PLUGIN_H
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* \defgroup PCM_Plugins PCM Plugins
|
* \defgroup PCM_Plugins PCM Plugins
|
||||||
* \ingroup PCM
|
* \ingroup PCM
|
||||||
|
|
@ -41,7 +43,13 @@
|
||||||
#define SND_PCM_PLUGIN_RATE_MIN 4000 /**< minimal rate for the rate plugin */
|
#define SND_PCM_PLUGIN_RATE_MIN 4000 /**< minimal rate for the rate plugin */
|
||||||
#define SND_PCM_PLUGIN_RATE_MAX 192000 /**< maximal rate for the rate plugin */
|
#define SND_PCM_PLUGIN_RATE_MAX 192000 /**< maximal rate for the rate plugin */
|
||||||
|
|
||||||
|
/* ROUTE_FLOAT should be set to 0 for machines without FP unit - like iPAQ */
|
||||||
|
#ifdef HAVE_SOFT_FLOAT
|
||||||
|
#define SND_PCM_PLUGIN_ROUTE_FLOAT 0 /**< use integers for route plugin */
|
||||||
|
#else
|
||||||
#define SND_PCM_PLUGIN_ROUTE_FLOAT 1 /**< use floats for route plugin */
|
#define SND_PCM_PLUGIN_ROUTE_FLOAT 1 /**< use floats for route plugin */
|
||||||
|
#endif
|
||||||
|
|
||||||
#define SND_PCM_PLUGIN_ROUTE_RESOLUTION 16 /**< integer resolution for route plugin */
|
#define SND_PCM_PLUGIN_ROUTE_RESOLUTION 16 /**< integer resolution for route plugin */
|
||||||
|
|
||||||
#if SND_PCM_PLUGIN_ROUTE_FLOAT
|
#if SND_PCM_PLUGIN_ROUTE_FLOAT
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue