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