Home
last modified time | relevance | path

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

/Linux-v6.6/tools/testing/selftests/alsa/
Dtest-pcmtest-driver.c241 char **chan_samples; in TEST_F() local
244 chan_samples = calloc(CH_NUM, sizeof(*chan_samples)); in TEST_F()
245 ASSERT_NE(chan_samples, NULL); in TEST_F()
256 chan_samples[i] = calloc(params.sec_buf_len * params.time, 1); in TEST_F()
259 read_res = snd_pcm_readn(handle, (void **)chan_samples, params.rate * params.time); in TEST_F()
266 ASSERT_EQ(chan_samples[i][j], patterns[i].buf[j % patterns[i].len]); in TEST_F()
267 free(chan_samples[i]); in TEST_F()
269 free(chan_samples); in TEST_F()
275 char **chan_samples; in TEST_F() local
279 chan_samples = calloc(CH_NUM, sizeof(*chan_samples)); in TEST_F()
[all …]