diff options
author | Khem Raj <raj.khem@gmail.com> | 2011-04-30 11:19:59 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-05-04 00:54:48 +0100 |
commit | c09c603f5f489a573c86a920e963f977c5ba794e (patch) | |
tree | 340bc1f6162d654d3ad76a1bd6378ded0b53eeb7 /meta/recipes-multimedia/alsa/alsa-utils-1.0.24.2 | |
parent | 6e0cede2fd3669e3827bc1008862169f8d3fade8 (diff) | |
download | poky-c09c603f5f489a573c86a920e963f977c5ba794e.tar.gz |
alsa-utils_1.0.24.2.bb: Fix build for uclibc targets
uclibc does not have exp10() implemented so we obtain
same behaviour using pow()
(From OE-Core rev: 199e76cd3d3bafef189d5a82e65796fb4a0c6536)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-multimedia/alsa/alsa-utils-1.0.24.2')
-rw-r--r-- | meta/recipes-multimedia/alsa/alsa-utils-1.0.24.2/uclibc-exp10-replacement.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/alsa/alsa-utils-1.0.24.2/uclibc-exp10-replacement.patch b/meta/recipes-multimedia/alsa/alsa-utils-1.0.24.2/uclibc-exp10-replacement.patch new file mode 100644 index 0000000000..038c90d600 --- /dev/null +++ b/meta/recipes-multimedia/alsa/alsa-utils-1.0.24.2/uclibc-exp10-replacement.patch | |||
@@ -0,0 +1,21 @@ | |||
1 | uclibc does not have exp10 function which is glibc extension. | ||
2 | Bur we can get the same behavior by using pow() | ||
3 | |||
4 | Upstream-status: Pending | ||
5 | |||
6 | Khem Raj <raj.khem@gmail.com> | ||
7 | |||
8 | Index: alsa-utils-1.0.24.2/alsamixer/volume_mapping.c | ||
9 | =================================================================== | ||
10 | --- alsa-utils-1.0.24.2.orig/alsamixer/volume_mapping.c | ||
11 | +++ alsa-utils-1.0.24.2/alsamixer/volume_mapping.c | ||
12 | @@ -36,6 +36,9 @@ | ||
13 | #include <math.h> | ||
14 | #include <stdbool.h> | ||
15 | #include "volume_mapping.h" | ||
16 | +#ifdef __UCLIBC__ | ||
17 | +#define exp10(x) (pow(10, (x))) | ||
18 | +#endif /* __UCLIBC__ */ | ||
19 | |||
20 | #define MAX_LINEAR_DB_SCALE 24 | ||
21 | |||