summaryrefslogtreecommitdiff
path: root/apps/dsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dsp.c')
-rw-r--r--apps/dsp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dsp.c b/apps/dsp.c
index a760865afb..30b4ed357b 100644
--- a/apps/dsp.c
+++ b/apps/dsp.c
@@ -33,6 +33,8 @@
33#include "misc.h" 33#include "misc.h"
34#include "tdspeed.h" 34#include "tdspeed.h"
35#include "buffer.h" 35#include "buffer.h"
36#include "fixedpoint.h"
37#include "fracmul.h"
36 38
37/* 16-bit samples are scaled based on these constants. The shift should be 39/* 16-bit samples are scaled based on these constants. The shift should be
38 * no more than 15. 40 * no more than 15.
@@ -841,7 +843,7 @@ void dsp_set_crossfeed_cross_params(long lf_gain, long hf_gain, long cutoff)
841 * crossfeed shelf filter and should be removed if crossfeed settings are 843 * crossfeed shelf filter and should be removed if crossfeed settings are
842 * ever made incompatible for any other good reason. 844 * ever made incompatible for any other good reason.
843 */ 845 */
844 cutoff = DIV64(cutoff, get_replaygain_int(hf_gain*5), 24); 846 cutoff = fp_div(cutoff, get_replaygain_int(hf_gain*5), 24);
845 filter_shelf_coefs(cutoff, hf_gain, false, c); 847 filter_shelf_coefs(cutoff, hf_gain, false, c);
846 /* Scale coefs by LF gain and shift them to s0.31 format. We have no gains 848 /* Scale coefs by LF gain and shift them to s0.31 format. We have no gains
847 * over 1 and can do this safely 849 * over 1 and can do this safely