1414#include <user/fir.h>
1515#include <xtensa/config/defs.h>
1616#include <xtensa/tie/xt_hifi3.h>
17+ #include <rtos/symbol.h>
1718#include <errno.h>
1819#include <stddef.h>
1920#include <stdint.h>
@@ -32,6 +33,7 @@ void fir_reset(struct fir_state_32x16 *fir)
3233 * reset so omitting setting also fir->delay to NULL.
3334 */
3435}
36+ EXPORT_SYMBOL (fir_reset );
3537
3638int fir_delay_size (struct sof_fir_coef_data * config )
3739{
@@ -48,6 +50,7 @@ int fir_delay_size(struct sof_fir_coef_data *config)
4850 */
4951 return (config -> length + 2 ) * sizeof (int32_t );
5052}
53+ EXPORT_SYMBOL (fir_delay_size );
5154
5255int fir_init_coef (struct fir_state_32x16 * fir ,
5356 struct sof_fir_coef_data * config )
@@ -63,6 +66,7 @@ int fir_init_coef(struct fir_state_32x16 *fir,
6366 fir -> coef = (ae_f16x4 * )& config -> coef [0 ];
6467 return 0 ;
6568}
69+ EXPORT_SYMBOL (fir_init_coef );
6670
6771void fir_init_delay (struct fir_state_32x16 * fir , int32_t * * data )
6872{
@@ -71,13 +75,15 @@ void fir_init_delay(struct fir_state_32x16 *fir, int32_t **data)
7175 fir -> rwp = (ae_int32 * )(fir -> delay + fir -> length - 1 );
7276 * data += fir -> length ; /* Point to next delay line start */
7377}
78+ EXPORT_SYMBOL (fir_init_delay );
7479
7580void fir_get_lrshifts (struct fir_state_32x16 * fir , int * lshift ,
7681 int * rshift )
7782{
7883 * lshift = (fir -> out_shift < 0 ) ? - fir -> out_shift : 0 ;
7984 * rshift = (fir -> out_shift > 0 ) ? fir -> out_shift : 0 ;
8085}
86+ EXPORT_SYMBOL (fir_get_lrshifts );
8187
8288/* HiFi EP has the follow number of reqisters that should not be exceeded
8389 * 4x 56 bit registers in register file Q
@@ -245,5 +251,6 @@ void fir_32x16_2x_hifi3(struct fir_state_32x16 *fir, ae_int32 x0, ae_int32 x1,
245251 AE_S32_L_I (AE_ROUND32F48SSYM (b ), (ae_int32 * )y1 , 0 );
246252 AE_S32_L_I (AE_ROUND32F48SSYM (a ), (ae_int32 * )y0 , 0 );
247253}
254+ EXPORT_SYMBOL (fir_32x16_2x_hifi3 );
248255
249256#endif
0 commit comments