diff options
author | Tzafrir Cohen <tzafrir@cohens.org.il> | 2008-10-12 00:55:40 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-10-22 12:56:33 -0400 |
commit | 68b8d9f6e5293eb342697f6edf319541a2c1b9b5 (patch) | |
tree | 49368c430f586ebad4930bcf4555b2501cc26043 /drivers/staging | |
parent | 17f8c114944de27e2fd9402fa2a75bccdac18502 (diff) |
Staging: echo: Export interface functions. Add module headers.
Signed-off-by: Tzafrir Cohen <tzafrir@cohens.org.il>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/echo/echo.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drivers/staging/echo/echo.c b/drivers/staging/echo/echo.c index 4a281b14fc58..0a03eedb4f4c 100644 --- a/drivers/staging/echo/echo.c +++ b/drivers/staging/echo/echo.c | |||
@@ -289,6 +289,7 @@ echo_can_state_t *echo_can_create(int len, int adaption_mode) | |||
289 | 289 | ||
290 | return ec; | 290 | return ec; |
291 | } | 291 | } |
292 | EXPORT_SYMBOL_GPL(echo_can_create); | ||
292 | /*- End of function --------------------------------------------------------*/ | 293 | /*- End of function --------------------------------------------------------*/ |
293 | 294 | ||
294 | void echo_can_free(echo_can_state_t *ec) | 295 | void echo_can_free(echo_can_state_t *ec) |
@@ -302,12 +303,14 @@ void echo_can_free(echo_can_state_t *ec) | |||
302 | kfree(ec->snapshot); | 303 | kfree(ec->snapshot); |
303 | kfree(ec); | 304 | kfree(ec); |
304 | } | 305 | } |
306 | EXPORT_SYMBOL_GPL(echo_can_free); | ||
305 | /*- End of function --------------------------------------------------------*/ | 307 | /*- End of function --------------------------------------------------------*/ |
306 | 308 | ||
307 | void echo_can_adaption_mode(echo_can_state_t *ec, int adaption_mode) | 309 | void echo_can_adaption_mode(echo_can_state_t *ec, int adaption_mode) |
308 | { | 310 | { |
309 | ec->adaption_mode = adaption_mode; | 311 | ec->adaption_mode = adaption_mode; |
310 | } | 312 | } |
313 | EXPORT_SYMBOL_GPL(echo_can_adaption_mode); | ||
311 | /*- End of function --------------------------------------------------------*/ | 314 | /*- End of function --------------------------------------------------------*/ |
312 | 315 | ||
313 | void echo_can_flush(echo_can_state_t *ec) | 316 | void echo_can_flush(echo_can_state_t *ec) |
@@ -334,11 +337,13 @@ void echo_can_flush(echo_can_state_t *ec) | |||
334 | ec->curr_pos = ec->taps - 1; | 337 | ec->curr_pos = ec->taps - 1; |
335 | ec->Pstates = 0; | 338 | ec->Pstates = 0; |
336 | } | 339 | } |
340 | EXPORT_SYMBOL_GPL(echo_can_flush); | ||
337 | /*- End of function --------------------------------------------------------*/ | 341 | /*- End of function --------------------------------------------------------*/ |
338 | 342 | ||
339 | void echo_can_snapshot(echo_can_state_t *ec) { | 343 | void echo_can_snapshot(echo_can_state_t *ec) { |
340 | memcpy(ec->snapshot, ec->fir_taps16[0], ec->taps*sizeof(int16_t)); | 344 | memcpy(ec->snapshot, ec->fir_taps16[0], ec->taps*sizeof(int16_t)); |
341 | } | 345 | } |
346 | EXPORT_SYMBOL_GPL(echo_can_snapshot); | ||
342 | /*- End of function --------------------------------------------------------*/ | 347 | /*- End of function --------------------------------------------------------*/ |
343 | 348 | ||
344 | /* Dual Path Echo Canceller ------------------------------------------------*/ | 349 | /* Dual Path Echo Canceller ------------------------------------------------*/ |
@@ -584,7 +589,7 @@ int16_t echo_can_update(echo_can_state_t *ec, int16_t tx, int16_t rx) | |||
584 | 589 | ||
585 | return (int16_t) ec->clean_nlp << 1; | 590 | return (int16_t) ec->clean_nlp << 1; |
586 | } | 591 | } |
587 | 592 | EXPORT_SYMBOL_GPL(echo_can_update); | |
588 | /*- End of function --------------------------------------------------------*/ | 593 | /*- End of function --------------------------------------------------------*/ |
589 | 594 | ||
590 | /* This function is seperated from the echo canceller is it is usually called | 595 | /* This function is seperated from the echo canceller is it is usually called |
@@ -630,3 +635,9 @@ int16_t echo_can_hpf_tx(echo_can_state_t *ec, int16_t tx) { | |||
630 | 635 | ||
631 | return tx; | 636 | return tx; |
632 | } | 637 | } |
638 | EXPORT_SYMBOL_GPL(echo_can_hpf_tx); | ||
639 | |||
640 | MODULE_LICENSE("GPL"); | ||
641 | MODULE_AUTHOR("David Rowe"); | ||
642 | MODULE_DESCRIPTION("Open Source Line Echo Canceller"); | ||
643 | MODULE_VERSION("0.3.0"); | ||