Lines Matching full:s32

17 #define INT_PI			((s32)(3.141592653589 * 32768.0))
20 ((float)(((s32)((a) * 100)) % ((s32)((b) * 100))) / 100.0)
22 #define baseband_freq(carrier, srate, tone) ((s32)( \
42 #define FREQ_A2M_CARRIER ((s32)(2.114516 * 32768.0))
43 #define FREQ_A2M_DUAL ((s32)(2.754916 * 32768.0))
44 #define FREQ_A2M_STEREO ((s32)(2.462326 * 32768.0))
46 #define FREQ_EIAJ_CARRIER ((s32)(1.963495 * 32768.0)) /* 5pi/8 */
47 #define FREQ_EIAJ_DUAL ((s32)(2.562118 * 32768.0))
48 #define FREQ_EIAJ_STEREO ((s32)(2.601053 * 32768.0))
50 #define FREQ_BTSC_DUAL ((s32)(1.963495 * 32768.0)) /* 5pi/8 */
51 #define FREQ_BTSC_DUAL_REF ((s32)(1.374446 * 32768.0)) /* 7pi/16 */
53 #define FREQ_BTSC_SAP ((s32)(2.471532 * 32768.0))
54 #define FREQ_BTSC_SAP_REF ((s32)(1.730072 * 32768.0))
57 #define FREQ_NOISE_START ((s32)(0.100000 * 32768.0))
58 #define FREQ_NOISE_END ((s32)(1.200000 * 32768.0))
70 static s32 int_cos(u32 x) in int_cos()
73 s32 ret; in int_cos()
99 s32 s_prev = 0; in int_goertzel()
100 s32 s_prev2 = 0; in int_goertzel()
101 s32 coeff = 2 * int_cos(freq); in int_goertzel()
108 s32 s = x[i] + ((s64)coeff * s_prev / 32768) - s_prev2; in int_goertzel()
118 * XXX: N must be low enough so that N*N fits in s32. in int_goertzel()
157 static s32 detect_a2_a2m_eiaj(struct cx88_core *core, s16 x[], u32 N) in detect_a2_a2m_eiaj()
159 s32 carrier, stereo, dual, noise; in detect_a2_a2m_eiaj()
160 s32 carrier_freq, stereo_freq, dual_freq; in detect_a2_a2m_eiaj()
161 s32 ret; in detect_a2_a2m_eiaj()
224 static s32 detect_btsc(struct cx88_core *core, s16 x[], u32 N) in detect_btsc()
226 s32 sap_ref = freq_magnitude(x, N, FREQ_BTSC_SAP_REF); in detect_btsc()
227 s32 sap = freq_magnitude(x, N, FREQ_BTSC_SAP); in detect_btsc()
228 s32 dual_ref = freq_magnitude(x, N, FREQ_BTSC_DUAL_REF); in detect_btsc()
229 s32 dual = freq_magnitude(x, N, FREQ_BTSC_DUAL); in detect_btsc()
272 s32 cx88_dsp_detect_stereo_sap(struct cx88_core *core) in cx88_dsp_detect_stereo_sap()
276 s32 ret = UNSET; in cx88_dsp_detect_stereo_sap()