Lines Matching refs:rate
25 unsigned int rate; member
78 static size_t get_sec_buf_len(unsigned int rate, unsigned long channels, snd_pcm_format_t format) in get_sec_buf_len() argument
80 return rate * channels * snd_pcm_format_physical_width(format) / 8; in get_sec_buf_len()
99 snd_pcm_hw_params_set_rate_near(*handle, hwparams, ¶ms->rate, 0); in setup_handle()
141 self->params.rate = 8000; in FIXTURE_SETUP()
147 self->params.sec_buf_len = get_sec_buf_len(self->params.rate, self->params.channels, in FIXTURE_SETUP()
184 params->rate * params->channels * params->time); in TEST_F()
192 write_res = snd_pcm_writei(handle, samples, params->rate * params->time); in TEST_F()
223 params->rate * params->channels * params->time); in TEST_F()
224 read_res = snd_pcm_readi(handle, samples, params->rate * params->time); in TEST_F()
259 read_res = snd_pcm_readn(handle, (void **)chan_samples, params.rate * params.time); in TEST_F()
265 for (j = 0; j < params.rate * params.time; j++) in TEST_F()
297 read_res = snd_pcm_writen(handle, (void **)chan_samples, params.rate * params.time); in TEST_F()