Lines Matching defs:samples
137 int samples = 5;
140 /* The last 192 samples are enough for noise detection */
145 freq_step = (freq_end - freq_start) / (samples - 1);
147 for (i = 0; i < samples; i++) {
152 return (u32)int_sqrt(sum / samples);
234 s16 *samples;
244 dprintk(1, "read RDS samples: current_address=%08x (offset=%08x), "
249 samples = kmalloc(sizeof(s16)*sample_count, GFP_KERNEL);
250 if (!samples)
257 samples[i] = cx_read(srch->fifo_start + offset);
262 dprintk(2, "RDS samples dump: ");
264 printk("%hd ", samples[i]);
268 return samples;
273 s16 *samples;
277 /* If audio RDS fifo is disabled, we can't read the samples */
287 samples = read_rds_samples(core, &N);
289 if (!samples)
297 ret = detect_a2_a2m_eiaj(core, samples, N);
300 ret = detect_btsc(core, samples, N);
311 kfree(samples);