Skip to content

Commit

Permalink
remove warning and fix small bug
Browse files Browse the repository at this point in the history
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
  • Loading branch information
TermeHansen committed Jan 6, 2017
1 parent 34f7eb0 commit 205fe25
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/mixer/plugins/volume_mapping.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
*/

#define _ISOC99_SOURCE /* lrint() */
#define _GNU_SOURCE /* exp10() */
//#include "aconfig.h"
#include <math.h>
#include <stdbool.h>
#include "volume_mapping.hxx"
Expand All @@ -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)
{
Expand Down

0 comments on commit 205fe25

Please sign in to comment.