summaryrefslogtreecommitdiff
path: root/lib/rbcodec/dsp/eq.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/dsp/eq.c')
-rw-r--r--lib/rbcodec/dsp/eq.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/rbcodec/dsp/eq.c b/lib/rbcodec/dsp/eq.c
index d58f0959b2..372ef9bbad 100644
--- a/lib/rbcodec/dsp/eq.c
+++ b/lib/rbcodec/dsp/eq.c
@@ -156,8 +156,10 @@ static intptr_t eq_configure(struct dsp_proc_entry *this,
156 { 156 {
157 case DSP_PROC_INIT: 157 case DSP_PROC_INIT:
158 if (value != 0) 158 if (value != 0)
159 break; 159 break; /* Already enabled */
160 this->process[0] = eq_process; 160
161 this->process = eq_process;
162 /* Fall-through */
161 case DSP_PROC_CLOSE: 163 case DSP_PROC_CLOSE:
162 pga_enable_gain(PGA_EQ_PRECUT, setting == DSP_PROC_INIT); 164 pga_enable_gain(PGA_EQ_PRECUT, setting == DSP_PROC_INIT);
163 break; 165 break;
@@ -167,7 +169,7 @@ static intptr_t eq_configure(struct dsp_proc_entry *this,
167 break; 169 break;
168 } 170 }
169 171
170 return 1; 172 return 0;
171 (void)dsp; 173 (void)dsp;
172} 174}
173 175