Lines Matching full:samples
139 int samples = 5; in noise_magnitude() local
142 /* The last 192 samples are enough for noise detection */ in noise_magnitude()
147 freq_step = (freq_end - freq_start) / (samples - 1); in noise_magnitude()
149 for (i = 0; i < samples; i++) { in noise_magnitude()
154 return (u32)int_sqrt(sum / samples); in noise_magnitude()
240 s16 *samples; in read_rds_samples() local
251 "read RDS samples: current_address=%08x (offset=%08x), sample_count=%d, aud_intstat=%08x\n", in read_rds_samples()
255 samples = kmalloc_array(sample_count, sizeof(*samples), GFP_KERNEL); in read_rds_samples()
256 if (!samples) in read_rds_samples()
263 samples[i] = cx_read(srch->fifo_start + offset); in read_rds_samples()
267 dprintk(2, "RDS samples dump: %*ph\n", sample_count, samples); in read_rds_samples()
269 return samples; in read_rds_samples()
274 s16 *samples; in cx88_dsp_detect_stereo_sap() local
278 /* If audio RDS fifo is disabled, we can't read the samples */ in cx88_dsp_detect_stereo_sap()
288 samples = read_rds_samples(core, &N); in cx88_dsp_detect_stereo_sap()
290 if (!samples) in cx88_dsp_detect_stereo_sap()
298 ret = detect_a2_a2m_eiaj(core, samples, N); in cx88_dsp_detect_stereo_sap()
301 ret = detect_btsc(core, samples, N); in cx88_dsp_detect_stereo_sap()
312 kfree(samples); in cx88_dsp_detect_stereo_sap()