From 205fe25fa6f151af03ad6ce4f26666aa5cf54042 Mon Sep 17 00:00:00 2001 From: TermeHansen Date: Fri, 6 Jan 2017 19:09:45 +0100 Subject: [PATCH] remove warning and fix small bug removed _GNU_SOURCE, which is set globally in mpd Added SND_CTL_TLV_DB_GAIN_MUTE which fixes rounding issue on IQaudio see http://www.alsa-project.org/alsa-doc/alsa-lib/group___control.html --- src/mixer/plugins/volume_mapping.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/mixer/plugins/volume_mapping.cxx b/src/mixer/plugins/volume_mapping.cxx index 6f551c9c40..76aab1daa4 100644 --- a/src/mixer/plugins/volume_mapping.cxx +++ b/src/mixer/plugins/volume_mapping.cxx @@ -31,8 +31,6 @@ */ #define _ISOC99_SOURCE /* lrint() */ -#define _GNU_SOURCE /* exp10() */ -//#include "aconfig.h" #include #include #include "volume_mapping.hxx" @@ -43,6 +41,7 @@ #endif /* __UCLIBC__ */ #define MAX_LINEAR_DB_SCALE 24 +#define SND_CTL_TLV_DB_GAIN_MUTE -9999999 static inline bool use_linear_dB_scale(long dBmin, long dBmax) {