From b1209d47899ea1906d2638bdaacb99b76f101e3f Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Fri, 16 Aug 2013 09:28:36 -0400 Subject: Fix FS#12889 : Audible pop right after setting Repeat/Shuffle The quickscreen calls settings_apply() and the crossfeed code wasn't checking that the right crossfeed was set before updating the filter for the custom setting, which was overwriting the Meier crossfeed data (custom and Meier share the same data space). Change-Id: Ifaa2f46fe062d4497681a2dd0d5068ec906c96a3 --- lib/rbcodec/dsp/crossfeed.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/rbcodec/dsp') diff --git a/lib/rbcodec/dsp/crossfeed.c b/lib/rbcodec/dsp/crossfeed.c index fc40c6b4d5..0428f58d8d 100644 --- a/lib/rbcodec/dsp/crossfeed.c +++ b/lib/rbcodec/dsp/crossfeed.c @@ -164,6 +164,9 @@ void dsp_set_crossfeed_cross_params(long lf_gain, long hf_gain, long cutoff) crossfeed_hf_gain = hf_gain; crossfeed_cutoff = cutoff; + if (crossfeed_type != CROSSFEED_TYPE_CUSTOM) + return; + struct dsp_config *dsp = dsp_get_config(CODEC_IDX_AUDIO); crossfeed_custom_update_filter(&crossfeed_state, dsp_get_output_frequency(dsp)); -- cgit v1.2.3