[oe-commits] Henning Heinold : alsa-utils: replacing exp10 with pow for uclibc
git version control
git at git.openembedded.org
Sun Mar 13 16:37:41 UTC 2011
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 544e4f08e672a94cb0c46ddc2964ff6b22fe1e45
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=544e4f08e672a94cb0c46ddc2964ff6b22fe1e45
Author: Henning Heinold <heinold at inf.fu-berlin.de>
Date: Sun Mar 13 17:19:52 2011 +0100
alsa-utils: replacing exp10 with pow for uclibc
* bump PR
---
recipes/alsa/alsa-utils-1.0.24.2/exp10.patch | 25 +++++++++++++++++++++++++
recipes/alsa/alsa-utils_1.0.24.2.bb | 5 +++++
2 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/recipes/alsa/alsa-utils-1.0.24.2/exp10.patch b/recipes/alsa/alsa-utils-1.0.24.2/exp10.patch
new file mode 100644
index 0000000..cb850e3
--- /dev/null
+++ b/recipes/alsa/alsa-utils-1.0.24.2/exp10.patch
@@ -0,0 +1,25 @@
+Index: alsa-utils-1.0.24.2/alsamixer/volume_mapping.c
+===================================================================
+--- alsa-utils-1.0.24.2.orig/alsamixer/volume_mapping.c 2011-01-31 15:19:55.000000000 +0100
++++ alsa-utils-1.0.24.2/alsamixer/volume_mapping.c 2011-03-13 16:59:33.434767354 +0100
+@@ -109,9 +109,9 @@
+ if (use_linear_dB_scale(min, max))
+ return (value - min) / (double)(max - min);
+
+- normalized = exp10((value - max) / 6000.0);
++ normalized = pow(10, (value - max) / 6000.0);
+ if (min != SND_CTL_TLV_DB_GAIN_MUTE) {
+- min_norm = exp10((min - max) / 6000.0);
++ min_norm = pow(10, (min - max) / 6000.0);
+ normalized = (normalized - min_norm) / (1 - min_norm);
+ }
+
+@@ -144,7 +144,7 @@
+ }
+
+ if (min != SND_CTL_TLV_DB_GAIN_MUTE) {
+- min_norm = exp10((min - max) / 6000.0);
++ min_norm = pow(10, (min - max) / 6000.0);
+ volume = volume * (1 - min_norm) + min_norm;
+ }
+ value = lrint_dir(6000.0 * log10(volume), dir) + max;
diff --git a/recipes/alsa/alsa-utils_1.0.24.2.bb b/recipes/alsa/alsa-utils_1.0.24.2.bb
index a2a9253..f63f58a 100644
--- a/recipes/alsa/alsa-utils_1.0.24.2.bb
+++ b/recipes/alsa/alsa-utils_1.0.24.2.bb
@@ -4,10 +4,15 @@ SECTION = "console/utils"
LICENSE = "GPLv2"
DEPENDS = "alsa-lib ncurses"
+PR = "r1"
+
SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \
file://remove-xmlto.patch \
"
+SRC_URI_append_libc-uclibc = "file://exp10.patch"
+
+
SRC_URI[md5sum] = "8238cd57cb301d1c36bcf0ecb59ce6b2"
SRC_URI[sha256sum] = "95127f740291086486c06c28118cabca0814bde48fd14dac041a9812a5ac1be2"
More information about the Openembedded-commits
mailing list