summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-01-29 02:46:18 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-01-29 02:46:18 +0000
commit236d52410f36a0a9202ca99c1865a8ff59895254 (patch)
tree876edc77877cc2ff6a12294de09904d706f54e0d
parenta8cc6a74547e6485f3aa9fe597f5d1dc176cca8a (diff)
downloadrockbox-236d52410f36a0a9202ca99c1865a8ff59895254.zip
rockbox-236d52410f36a0a9202ca99c1865a8ff59895254.tar.gz
rockbox-236d52410f36a0a9202ca99c1865a8ff59895254.tar.bz2
rockbox-236d52410f36a0a9202ca99c1865a8ff59895254.tar.xz
Backout part of the last change to fix builds for now
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8479 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/SOURCES4
-rw-r--r--apps/dsp.c34
2 files changed, 0 insertions, 38 deletions
diff --git a/apps/SOURCES b/apps/SOURCES
index 94c081e..cf17bbc 100644
--- a/apps/SOURCES
+++ b/apps/SOURCES
@@ -76,8 +76,4 @@ playback.c
metadata.c
codecs.c
dsp.c
-eq.c
-#if defined(CPU_COLDFIRE) && !defined(SIMULATOR)
-eq_cf.S
-#endif
#endif
diff --git a/apps/dsp.c b/apps/dsp.c
index b2fc0ce..19cb669 100644
--- a/apps/dsp.c
+++ b/apps/dsp.c
@@ -19,7 +19,6 @@
#include <inttypes.h>
#include <string.h>
#include "dsp.h"
-#include "eq.h"
#include "kernel.h"
#include "playback.h"
#include "system.h"
@@ -167,21 +166,10 @@ struct crossfeed_data
int index;
};
-/* Current setup is one lowshelf filters, three peaking filters and one
- highshelf filter. Varying the number of shelving filters make no sense,
- but adding peaking filters are possible. */
-struct eq_state {
- char enabled[5]; /* Flags for active filters */
- struct eqfilter ls;
- struct eqfilter pk[3];
- struct eqfilter hs;
-};
-
static struct dsp_config dsp_conf[2] IBSS_ATTR;
static struct dither_data dither_data[2] IBSS_ATTR;
static struct resample_data resample_data[2] IBSS_ATTR;
struct crossfeed_data crossfeed_data IBSS_ATTR;
-static struct eq_state eq_data;
static int pitch_ratio = 1000;
@@ -620,25 +608,6 @@ static void apply_crossfeed(long* src[], int count)
}
#endif
-/* Apply EQ filters to those bands that have got it switched on. */
-void eq_process(long **x, unsigned num)
-{
- int i;
- unsigned int channels = dsp->stereo_mode != STEREO_MONO ? 2 : 1;
-
- /* filter configuration currently is 1 low shelf filter, 3 band peaking
- filters and 1 high shelf filter, in that order.
- */
- if (eq_data.enabled[0])
- eq_filter(x, &eq_data.ls, num, channels, EQ_SHELF_SHIFT);
- for (i = 0; i < 3; i++) {
- if (eq_data.enabled[1 + i])
- eq_filter(x, &eq_data.pk[i], num, channels, EQ_PEAK_SHIFT);
- }
- if (eq_data.enabled[4])
- eq_filter(x, &eq_data.hs, num, channels, EQ_SHELF_SHIFT);
-}
-
/* Apply a constant gain to the samples (e.g., for ReplayGain). May update
* the src array if gain was applied.
* Note that this must be called before the resampler.
@@ -744,9 +713,6 @@ long dsp_process(char* dst, char* src[], long size)
samples = resample(tmp, samples);
if (dsp->crossfeed_enabled && dsp->stereo_mode != STEREO_MONO)
apply_crossfeed(tmp, samples);
- /* TODO: Might want to wrap this with a generic eq_enabled when the
- settings are in place */
- eq_process(tmp, samples);
write_samples((short*) dst, tmp, samples);
written += samples;
dst += samples * sizeof(short) * 2;