Lines Matching defs:tcfg
174 prepare(testcfg_t *tcfg)
187 for (i = 0; (ccfg = tcfg->tests[i]) != NULL; i++) {
194 rate_multiple = tcfg->rate / 48000;
197 ccfg->len = nsamples * tcfg->nchan *
205 for (ch = 0; ch < tcfg->nchan; ch++) {
228 testdsp(int hd, int flags, testcfg_t *tcfg)
262 tmp = tcfg->nchan;
263 if (ioctl(hd, SNDCTL_DSP_CHANNELS, &tmp) == -1 || tmp != tcfg->nchan) {
265 tcfg->nchan);
272 tmp = tcfg->rate;
279 if (sample_rate != tcfg->rate) {
281 tcfg->rate);
298 for (i = 0; (ccfg = tcfg->tests[i]) != NULL; i++) {
333 total_bytes /= (tcfg->nchan * sizeof (int16_t));
380 test_device(char *dn, int flags, testcfg_t *tcfg)
423 code = testdsp(fd, flags, tcfg);
484 testcfg_t *tcfg;
489 tcfg = &test_stereo;
501 tcfg = &test_stereo;
504 tcfg = &test_quad;
507 tcfg = &test_51;
510 tcfg = &test_71;
513 tcfg->rate = atoi(optarg);
539 prepare(tcfg); /* Prepare the wave data */
560 rv = test_device(dn, flags, tcfg);
577 rv = test_device(dn, flags, tcfg);