diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2008-10-12 02:13:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-22 12:56:33 -0400 |
commit | f55ccbf6bc5e5e857b15f51d481aa7b1cd993ae0 (patch) | |
tree | 9d0b1200718abb7aec54726866b58dafbe9c858b | |
parent | 9d8f2d5dfbcc9d2229f5e93653988d98360e248c (diff) |
Staging: echo: Replace __BLACKFIN__ASM__ with __bfin__
Signed-off-by: Tzafrir Cohen <tzafrir@cohens.org.il>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | drivers/staging/echo/echo.c | 2 | ||||
-rw-r--r-- | drivers/staging/echo/fir.h | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/echo/echo.c b/drivers/staging/echo/echo.c index 13792ef286f3..140f3f0e0609 100644 --- a/drivers/staging/echo/echo.c +++ b/drivers/staging/echo/echo.c | |||
@@ -127,7 +127,7 @@ | |||
127 | /* adapting coeffs using the traditional stochastic descent (N)LMS algorithm */ | 127 | /* adapting coeffs using the traditional stochastic descent (N)LMS algorithm */ |
128 | 128 | ||
129 | 129 | ||
130 | #ifdef __BLACKFIN_ASM__ | 130 | #ifdef __bfin__ |
131 | static void __inline__ lms_adapt_bg(struct oslec_state *ec, int clean, int shift) | 131 | static void __inline__ lms_adapt_bg(struct oslec_state *ec, int clean, int shift) |
132 | { | 132 | { |
133 | int i, j; | 133 | int i, j; |
diff --git a/drivers/staging/echo/fir.h b/drivers/staging/echo/fir.h index e1bfc4994886..277d20e43f14 100644 --- a/drivers/staging/echo/fir.h +++ b/drivers/staging/echo/fir.h | |||
@@ -116,7 +116,7 @@ static __inline__ const int16_t *fir16_create(fir16_state_t *fir, | |||
116 | fir->taps = taps; | 116 | fir->taps = taps; |
117 | fir->curr_pos = taps - 1; | 117 | fir->curr_pos = taps - 1; |
118 | fir->coeffs = coeffs; | 118 | fir->coeffs = coeffs; |
119 | #if defined(USE_MMX) || defined(USE_SSE2) || defined(__BLACKFIN_ASM__) | 119 | #if defined(USE_MMX) || defined(USE_SSE2) || defined(__bfin__) |
120 | if ((fir->history = malloc(2*taps*sizeof(int16_t)))) | 120 | if ((fir->history = malloc(2*taps*sizeof(int16_t)))) |
121 | memset(fir->history, 0, 2*taps*sizeof(int16_t)); | 121 | memset(fir->history, 0, 2*taps*sizeof(int16_t)); |
122 | #else | 122 | #else |
@@ -129,7 +129,7 @@ static __inline__ const int16_t *fir16_create(fir16_state_t *fir, | |||
129 | 129 | ||
130 | static __inline__ void fir16_flush(fir16_state_t *fir) | 130 | static __inline__ void fir16_flush(fir16_state_t *fir) |
131 | { | 131 | { |
132 | #if defined(USE_MMX) || defined(USE_SSE2) || defined(__BLACKFIN_ASM__) | 132 | #if defined(USE_MMX) || defined(USE_SSE2) || defined(__bfin__) |
133 | memset(fir->history, 0, 2*fir->taps*sizeof(int16_t)); | 133 | memset(fir->history, 0, 2*fir->taps*sizeof(int16_t)); |
134 | #else | 134 | #else |
135 | memset(fir->history, 0, fir->taps*sizeof(int16_t)); | 135 | memset(fir->history, 0, fir->taps*sizeof(int16_t)); |
@@ -143,7 +143,7 @@ static __inline__ void fir16_free(fir16_state_t *fir) | |||
143 | } | 143 | } |
144 | /*- End of function --------------------------------------------------------*/ | 144 | /*- End of function --------------------------------------------------------*/ |
145 | 145 | ||
146 | #ifdef __BLACKFIN_ASM__ | 146 | #ifdef __bfin__ |
147 | static inline int32_t dot_asm(short *x, short *y, int len) | 147 | static inline int32_t dot_asm(short *x, short *y, int len) |
148 | { | 148 | { |
149 | int dot; | 149 | int dot; |
@@ -242,7 +242,7 @@ static __inline__ int16_t fir16(fir16_state_t *fir, int16_t sample) | |||
242 | psrldq_i2r(4, xmm0); | 242 | psrldq_i2r(4, xmm0); |
243 | paddd_r2r(xmm0, xmm4); | 243 | paddd_r2r(xmm0, xmm4); |
244 | movd_r2m(xmm4, y); | 244 | movd_r2m(xmm4, y); |
245 | #elif defined(__BLACKFIN_ASM__) | 245 | #elif defined(__bfin__) |
246 | fir->history[fir->curr_pos] = sample; | 246 | fir->history[fir->curr_pos] = sample; |
247 | fir->history[fir->curr_pos + fir->taps] = sample; | 247 | fir->history[fir->curr_pos + fir->taps] = sample; |
248 | y = dot_asm((int16_t*)fir->coeffs, &fir->history[fir->curr_pos], fir->taps); | 248 | y = dot_asm((int16_t*)fir->coeffs, &fir->history[fir->curr_pos], fir->taps); |