diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2012-12-19 17:34:57 -0500 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-05-04 13:43:33 -0400 |
commit | 78a45b47dede5ddf35dfc53e965b486a79177b18 (patch) | |
tree | edb3ad7c101e600a7cc3be4b40380430cbeb3e55 /lib/rbcodec/dsp/pga.c | |
parent | cdb71c707bb434f44368b72f2db3becc37b7a46c (diff) | |
download | rockbox-78a45b47dede5ddf35dfc53e965b486a79177b18.tar.gz rockbox-78a45b47dede5ddf35dfc53e965b486a79177b18.zip |
Cleanup and simplify latest DSP code incarnation.
Some things can just be a bit simpler in handling the list of stages
and some things, especially format change handling, can be simplified
for each stage implementation. Format changes are sent through the
configure() callback.
Hide some internal details and variables from processing stages and
let the core deal with it.
Do some miscellaneous cleanup and keep things a bit better factored.
Change-Id: I19dd8ce1d0b792ba914d426013088a49a52ecb7e
Diffstat (limited to 'lib/rbcodec/dsp/pga.c')
-rw-r--r-- | lib/rbcodec/dsp/pga.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/rbcodec/dsp/pga.c b/lib/rbcodec/dsp/pga.c index de852d01d4..522789fcf2 100644 --- a/lib/rbcodec/dsp/pga.c +++ b/lib/rbcodec/dsp/pga.c | |||
@@ -129,13 +129,14 @@ static intptr_t pga_configure(struct dsp_proc_entry *this, | |||
129 | { | 129 | { |
130 | case DSP_PROC_INIT: | 130 | case DSP_PROC_INIT: |
131 | if (value != 0) | 131 | if (value != 0) |
132 | break; /* Already initialized */ | 132 | break; /* Already enabled */ |
133 | |||
133 | this->data = (intptr_t)&pga_data; | 134 | this->data = (intptr_t)&pga_data; |
134 | this->process[0] = pga_process; | 135 | this->process = pga_process; |
135 | break; | 136 | break; |
136 | } | 137 | } |
137 | 138 | ||
138 | return 1; | 139 | return 0; |
139 | (void)dsp; | 140 | (void)dsp; |
140 | } | 141 | } |
141 | 142 | ||