From a486ee4fb8fa7676bfb23adddc9cd5986a0e680d Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Sun, 17 Sep 2017 00:23:15 +0200 Subject: fix red on ypr0/ypr1 Always compile in pcm_alsa_set_digital_volume, the linker will optimize it away on targets that don't use it. Change-Id: Ia21c3eaa8a64b75761ab5d056361e7ed1fcf949a --- firmware/target/hosted/pcm-alsa.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/firmware/target/hosted/pcm-alsa.c b/firmware/target/hosted/pcm-alsa.c index d55eebccc1..12de685e73 100644 --- a/firmware/target/hosted/pcm-alsa.c +++ b/firmware/target/hosted/pcm-alsa.c @@ -221,7 +221,6 @@ error: return err; } -#ifdef SONY_NWZ_LINUX /* Digital volume explanation: * with very good approximation (<0.1dB) the convertion from dB to multiplicative * factor, for dB>=0, is 2^(dB/3). We can then notice that if we write dB=3*k+r @@ -253,7 +252,6 @@ void pcm_alsa_set_digital_volume(int vol_db) dig_vol_mult = 1 << vol_shift | 1 << (vol_shift - 1); printf("%d dB -> factor = %d\n", vol_db - 48, dig_vol_mult); } -#endif /* copy pcm samples to a spare buffer, suitable for snd_pcm_writei() */ static bool fill_frames(void) -- cgit v1.2.3