diff options
Diffstat (limited to 'apps/dsp.c')
-rw-r--r-- | apps/dsp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dsp.c b/apps/dsp.c index 9cdc715109..29e103afb7 100644 --- a/apps/dsp.c +++ b/apps/dsp.c | |||
@@ -629,7 +629,10 @@ void dsp_set_eq_coefs(int band) | |||
629 | cutoff = 0xffffffff / NATIVE_FREQUENCY * (*setting++); | 629 | cutoff = 0xffffffff / NATIVE_FREQUENCY * (*setting++); |
630 | q = ((*setting++) << 16) / 10; /* 16.16 */ | 630 | q = ((*setting++) << 16) / 10; /* 16.16 */ |
631 | gain = ((*setting++) << 16) / 10; /* s15.16 */ | 631 | gain = ((*setting++) << 16) / 10; /* s15.16 */ |
632 | 632 | ||
633 | if (q == 0) | ||
634 | q = 1; | ||
635 | |||
633 | /* The coef functions assume the EMAC unit is in fractional mode */ | 636 | /* The coef functions assume the EMAC unit is in fractional mode */ |
634 | #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) | 637 | #if defined(CPU_COLDFIRE) && !defined(SIMULATOR) |
635 | /* set emac unit for dsp processing, and save old macsr, we're running in | 638 | /* set emac unit for dsp processing, and save old macsr, we're running in |