From 7df51ada07d4b120aed8fe5c17b58cb7c626a789 Mon Sep 17 00:00:00 2001 From: Thom Johansen Date: Wed, 1 Feb 2006 09:48:47 +0000 Subject: Changed meaning of shift parameter to include the EMAC implicit shift factor. ARM version is already fixed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8520 a1c6a512-1295-4272-9138-f99709370657 --- apps/eq.h | 4 ++-- apps/eq_cf.S | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/eq.h b/apps/eq.h index c4eb5f16c0..f29d765325 100644 --- a/apps/eq.h +++ b/apps/eq.h @@ -23,8 +23,8 @@ /* These depend on the fixed point formats used by the different filter types and need to be changed when they change. */ -#define EQ_PEAK_SHIFT 3 -#define EQ_SHELF_SHIFT 7 +#define EQ_PEAK_SHIFT 4 +#define EQ_SHELF_SHIFT 8 struct eqfilter { long coefs[5]; /* Order is b0, b1, b2, a1, a2 */ diff --git a/apps/eq_cf.S b/apps/eq_cf.S index 0a34d7707e..f2440c2bdd 100644 --- a/apps/eq_cf.S +++ b/apps/eq_cf.S @@ -24,6 +24,7 @@ eq_filter: movem.l %d2-%d7/%a2-%a6, (%sp) | save clobbered regs move.l (11*4+8, %sp), %a5 | fetch filter structure address movem.l (11*4+16, %sp), %d6-%d7 | load num. channels and shift count + subq.l #1, %d7 | EMAC gives us one free shift movem.l (%a5), %a0-%a4 | load coefs lea.l (5*4, %a5), %a5 | point to filter history -- cgit v1.2.3