diff options
Diffstat (limited to 'apps/codecs/demac')
-rw-r--r-- | apps/codecs/demac/libdemac/filter.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/codecs/demac/libdemac/filter.c b/apps/codecs/demac/libdemac/filter.c index ac12959241..e85e42fb00 100644 --- a/apps/codecs/demac/libdemac/filter.c +++ b/apps/codecs/demac/libdemac/filter.c | |||
@@ -84,7 +84,7 @@ struct filter_t { | |||
84 | 84 | ||
85 | /* Apply the filter with state f to count entries in data[] */ | 85 | /* Apply the filter with state f to count entries in data[] */ |
86 | 86 | ||
87 | static inline void do_apply_filter_3980(struct filter_t* f, int32_t* data, int count) | 87 | static void do_apply_filter_3980(struct filter_t* f, int32_t* data, int count) |
88 | { | 88 | { |
89 | int res; | 89 | int res; |
90 | int absres; | 90 | int absres; |
@@ -95,7 +95,7 @@ static inline void do_apply_filter_3980(struct filter_t* f, int32_t* data, int c | |||
95 | 95 | ||
96 | while(count--) | 96 | while(count--) |
97 | { | 97 | { |
98 | res = FP_TO_INT(scalarproduct(f->delay - ORDER, f->coeffs)); | 98 | res = FP_TO_INT(scalarproduct(f->coeffs, f->delay - ORDER)); |
99 | 99 | ||
100 | if (*data < 0) | 100 | if (*data < 0) |
101 | vector_add(f->coeffs, f->adaptcoeffs - ORDER); | 101 | vector_add(f->coeffs, f->adaptcoeffs - ORDER); |
@@ -141,7 +141,7 @@ static inline void do_apply_filter_3980(struct filter_t* f, int32_t* data, int c | |||
141 | } | 141 | } |
142 | } | 142 | } |
143 | 143 | ||
144 | static inline void do_apply_filter_3970(struct filter_t* f, int32_t* data, int count) | 144 | static void do_apply_filter_3970(struct filter_t* f, int32_t* data, int count) |
145 | { | 145 | { |
146 | int res; | 146 | int res; |
147 | 147 | ||
@@ -151,7 +151,7 @@ static inline void do_apply_filter_3970(struct filter_t* f, int32_t* data, int c | |||
151 | 151 | ||
152 | while(count--) | 152 | while(count--) |
153 | { | 153 | { |
154 | res = FP_TO_INT(scalarproduct(f->delay - ORDER, f->coeffs)); | 154 | res = FP_TO_INT(scalarproduct(f->coeffs, f->delay - ORDER)); |
155 | 155 | ||
156 | if (*data < 0) | 156 | if (*data < 0) |
157 | vector_add(f->coeffs, f->adaptcoeffs - ORDER); | 157 | vector_add(f->coeffs, f->adaptcoeffs - ORDER); |