Android-x86
Fork

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-alsa-utils: コミット

external/alsa-utils


コミットメタ情報

リビジョン116488e5f2f1b897084bd151381ee254e1cc177d (tree)
日時2019-01-18 17:40:54
作者Jaroslav Kysela <perex@pere...>
コミッターJaroslav Kysela

ログメッセージ

alsamixer: define _GNU_SOURCE to get exp10

Fixes Master, Headphones and Speaker stuck at -8 percentage after
building with Clang 7.0.1 and getting warned about implicit declaration
of exp10, which is behind _GNU_SOURCE as a non-standard feature. Thanks
Takashi Iwai for the CFLAGS suggestion on the mailing list. GCC build is
not affected, so not adding a compiler check to the configure script.

uClibc-ng has got exp10 since 1.0.12, so the fallback macro is no longer
needed. However, alsa-utils relies on gettext so might need further
patches to actually work on uClibc systems.

Signed-off-by: makepost <makepost@firemail.cc>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

変更サマリ

差分

--- a/alsamixer/Makefile.am
+++ b/alsamixer/Makefile.am
@@ -1,4 +1,4 @@
1-AM_CFLAGS = @CURSES_CFLAGS@ -DCURSESINC="@CURSESINC@"
1+AM_CFLAGS = -D_GNU_SOURCE @CURSES_CFLAGS@ -DCURSESINC="@CURSESINC@"
22 LDADD = @CURSESLIB@
33
44 bin_PROGRAMS = alsamixer
--- a/alsamixer/volume_mapping.c
+++ b/alsamixer/volume_mapping.c
@@ -36,11 +36,6 @@
3636 #include <stdbool.h>
3737 #include "volume_mapping.h"
3838
39-#ifdef __UCLIBC__
40-/* 10^x = 10^(log e^x) = (e^x)^log10 = e^(x * log 10) */
41-#define exp10(x) (exp((x) * log(10)))
42-#endif /* __UCLIBC__ */
43-
4439 #define MAX_LINEAR_DB_SCALE 24
4540
4641 static inline bool use_linear_dB_scale(long dBmin, long dBmax)
旧リポジトリブラウザで表示