aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-multimedia/alsa/alsa-utils-1.0.24.2/uclibc-exp10-replacement.patch
blob: 038c90d600ea841692220a6274cc5758c79e96f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
uclibc does not have exp10 function which is glibc extension.
Bur we can get the same behavior by using pow()

Upstream-status: Pending

Khem Raj <raj.khem@gmail.com>

Index: alsa-utils-1.0.24.2/alsamixer/volume_mapping.c
===================================================================
--- alsa-utils-1.0.24.2.orig/alsamixer/volume_mapping.c
+++ alsa-utils-1.0.24.2/alsamixer/volume_mapping.c
@@ -36,6 +36,9 @@
 #include <math.h>
 #include <stdbool.h>
 #include "volume_mapping.h"
+#ifdef __UCLIBC__
+#define exp10(x) (pow(10, (x)))
+#endif /* __UCLIBC__ */
 
 #define MAX_LINEAR_DB_SCALE	24