alsa-utils: update to 1.0.24.2 (thanks Acinonyx)
authorJan Willies <loswillios@gmail.com>
Fri, 11 Mar 2011 13:51:48 +0000 (13:51 +0000)
committerJan Willies <loswillios@gmail.com>
Fri, 11 Mar 2011 13:51:48 +0000 (13:51 +0000)
SVN-Revision: 26035

utils/alsa-utils/Makefile
utils/alsa-utils/patches/100-uClibc-compat.patch [new file with mode: 0644]

index c4ae73a82796d711b5f3b54db2dd3b9b3bae012d..0d63dc83162574a54d5c9eca778876421607114c 100644 (file)
@@ -8,13 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=alsa-utils
-PKG_VERSION:=1.0.23
+PKG_VERSION:=1.0.24.2
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/utils/ \
                http://alsa.cybermirror.org/utils/
-PKG_MD5SUM:=cb0cf46029ac9549cf3a31bff6a4f4e1
+PKG_MD5SUM:=8238cd57cb301d1c36bcf0ecb59ce6b2
 PKG_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
diff --git a/utils/alsa-utils/patches/100-uClibc-compat.patch b/utils/alsa-utils/patches/100-uClibc-compat.patch
new file mode 100644 (file)
index 0000000..9766125
--- /dev/null
@@ -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-03-11 13:26:29.000000000 +0100
++++ alsa-utils-1.0.24.2/alsamixer/volume_mapping.c     2011-03-11 13:27:58.000000000 +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;