Home
last modified time | relevance | path

Searched refs:sk2 (Results 1 – 2 of 2) sorted by relevance

/drivers/isdn/mISDN/
Ddsp_dtmf.c120 s32 sk, sk1, sk2; in dsp_dtmf_goertzel_decode() local
156 sk2 = (*hfccoeff++)>>4; in dsp_dtmf_goertzel_decode()
158 if (sk > 32767 || sk < -32767 || sk2 > 32767 in dsp_dtmf_goertzel_decode()
159 || sk2 < -32767) in dsp_dtmf_goertzel_decode()
165 (((cos2pik[k] * sk) >> 15) * sk2) + in dsp_dtmf_goertzel_decode()
166 (sk2 * sk2); in dsp_dtmf_goertzel_decode()
184 sk2 = 0; in dsp_dtmf_goertzel_decode()
188 sk = ((cos2pik_*sk1)>>15) - sk2 + (*buf++); in dsp_dtmf_goertzel_decode()
189 sk2 = sk1; in dsp_dtmf_goertzel_decode()
193 sk2 >>= 8; in dsp_dtmf_goertzel_decode()
[all …]
/drivers/isdn/i4l/
Disdn_audio.c451 sk2; in isdn_audio_goertzel() local
466 sk = sk1 = sk2 = 0; in isdn_audio_goertzel()
468 sk = sample[n] + ((cos2pik[k] * sk1) >> 15) - sk2; in isdn_audio_goertzel()
469 sk2 = sk1; in isdn_audio_goertzel()
474 sk2 >>= 1; in isdn_audio_goertzel()
481 if (sk2 < -32768 || sk2 > 32767) in isdn_audio_goertzel()
483 "isdn_audio: dtmf goertzel overflow, sk2=%d\n", sk2); in isdn_audio_goertzel()
486 ((((cos2pik[k] * sk) >> 15) * sk2) >> AMP_BITS) + in isdn_audio_goertzel()
487 ((sk2 * sk2) >> AMP_BITS); in isdn_audio_goertzel()