summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2017-09-17 00:23:15 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2017-09-17 00:23:15 +0200
commita486ee4fb8fa7676bfb23adddc9cd5986a0e680d (patch)
treed105279a80a0f8f688fc4990a53912c96a5da300
parent53ebdbc7f36e7439a3ed9bfd74c64c26d4e886dc (diff)
downloadrockbox-a486ee4fb8fa7676bfb23adddc9cd5986a0e680d.tar.gz
rockbox-a486ee4fb8fa7676bfb23adddc9cd5986a0e680d.tar.bz2
rockbox-a486ee4fb8fa7676bfb23adddc9cd5986a0e680d.zip
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
-rw-r--r--firmware/target/hosted/pcm-alsa.c2
1 files changed, 0 insertions, 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)