Lines Matching refs:handle
34 snd_pcm_t *handle; member
156 snd_ctl_t *handle; in find_pcms() local
172 err = snd_ctl_open_lconf(&handle, name, 0, config); in find_pcms()
199 if (snd_ctl_pcm_next_device(handle, &dev) < 0) in find_pcms()
215 err = snd_ctl_pcm_info(handle, pcm_info); in find_pcms()
247 snd_ctl_close(handle); in find_pcms()
265 snd_pcm_t *handle = NULL; in test_pcm_time() local
324 err = snd_pcm_open(&handle, name, data->stream, 0); in test_pcm_time()
330 err = snd_pcm_hw_params_any(handle, hw_params); in test_pcm_time()
335 err = snd_pcm_hw_params_set_rate_resample(handle, hw_params, 0); in test_pcm_time()
340 err = snd_pcm_hw_params_set_access(handle, hw_params, access); in test_pcm_time()
348 err = snd_pcm_hw_params_set_format(handle, hw_params, format); in test_pcm_time()
374 err = snd_pcm_hw_params_set_channels(handle, hw_params, channels); in test_pcm_time()
380 err = snd_pcm_hw_params_set_rate_near(handle, hw_params, &rrate, 0); in test_pcm_time()
390 err = snd_pcm_hw_params_set_period_size_near(handle, hw_params, &rperiod_size, 0); in test_pcm_time()
396 err = snd_pcm_hw_params_set_buffer_size_near(handle, hw_params, &rbuffer_size); in test_pcm_time()
401 err = snd_pcm_hw_params(handle, hw_params); in test_pcm_time()
407 err = snd_pcm_sw_params_current(handle, sw_params); in test_pcm_time()
417 err = snd_pcm_sw_params_set_start_threshold(handle, sw_params, start_threshold); in test_pcm_time()
422 err = snd_pcm_sw_params_set_avail_min(handle, sw_params, rperiod_size); in test_pcm_time()
427 err = snd_pcm_sw_params(handle, sw_params); in test_pcm_time()
449 frames = snd_pcm_writei(handle, samples, rate); in test_pcm_time()
461 frames = snd_pcm_readi(handle, samples, rate); in test_pcm_time()
475 snd_pcm_drain(handle); in test_pcm_time()
520 if (handle) in test_pcm_time()
521 snd_pcm_close(handle); in test_pcm_time()