src/audio/dcblock/dcblock_generic.c
/**
 *
 * Genereric processing function. Input is 32 bits.
 *
 */
Genereric processing function. Input is 32 bits.
Genereric processing function . Input is 32 bits .
static int32_t dcblock_generic(struct dcblock_state *state,
			       int64_t R, int32_t x)
{
	int64_t out = ((int64_t)x) - state->x_prev +
		      Q_SHIFT_RND(R * state->y_prev, 61, 31);
	state->y_prev = sat_int32(out);
	state->x_prev = x;
	return state->y_prev;
}
static int32_t dcblock_generic ( struct dcblock_state * state , int64_t R , int32_t x ) { int64_t out = ( ( int64_t ) x ) - state -> x_prev + Q_SHIFT_RND ( R * state -> y_prev , 61 , 31 ) ; state -> y_prev = sat_int32 ( out ) ; state -> x_prev = x ; return state -> y_prev ; }
Genereric processing function.
Genereric processing function .
/*
	 * R: Q2.30, y_prev: Q1.31
	 * R * y_prev: Q3.61
	 */