diff options
| -rw-r--r-- | meta/recipes-multimedia/alsa/alsa-utils-1.0.24.2/uclibc-exp10-replacement.patch | 21 | ||||
| -rw-r--r-- | meta/recipes-multimedia/alsa/alsa-utils_1.0.24.2.bb | 4 |
2 files changed, 24 insertions, 1 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 | |||
diff --git a/meta/recipes-multimedia/alsa/alsa-utils_1.0.24.2.bb b/meta/recipes-multimedia/alsa/alsa-utils_1.0.24.2.bb index c882bfd57f..4cb31a9547 100644 --- a/meta/recipes-multimedia/alsa/alsa-utils_1.0.24.2.bb +++ b/meta/recipes-multimedia/alsa/alsa-utils_1.0.24.2.bb | |||
| @@ -9,7 +9,9 @@ DEPENDS = "alsa-lib ncurses" | |||
| 9 | PR = "r0" | 9 | PR = "r0" |
| 10 | 10 | ||
| 11 | SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \ | 11 | SRC_URI = "ftp://ftp.alsa-project.org/pub/utils/alsa-utils-${PV}.tar.bz2 \ |
| 12 | file://ncursesfix.patch" | 12 | file://ncursesfix.patch \ |
| 13 | file://uclibc-exp10-replacement.patch \ | ||
| 14 | " | ||
| 13 | 15 | ||
| 14 | SRC_URI[md5sum] = "8238cd57cb301d1c36bcf0ecb59ce6b2" | 16 | SRC_URI[md5sum] = "8238cd57cb301d1c36bcf0ecb59ce6b2" |
| 15 | SRC_URI[sha256sum] = "95127f740291086486c06c28118cabca0814bde48fd14dac041a9812a5ac1be2" | 17 | SRC_URI[sha256sum] = "95127f740291086486c06c28118cabca0814bde48fd14dac041a9812a5ac1be2" |
