Lines Matching refs:handle_c
103 snd_pcm_t *handle_c = NULL; in main() local
248 if ((err = snd_pcm_open(&handle_c, pcm_name, SND_PCM_STREAM_CAPTURE, SND_PCM_NONBLOCK)) < 0) { in main()
252 if ((err = snd_pcm_set_params(handle_c, in main()
265 err = snd_pcm_hw_params_current(handle_c, hwparams_c); in main()
286 err = snd_pcm_sw_params_current(handle_c, swparams_c); in main()
293 err = snd_pcm_sw_params_set_tstamp_mode(handle_c, swparams_c, SND_PCM_TSTAMP_ENABLE); in main()
299 err = snd_pcm_sw_params_set_tstamp_type(handle_c, swparams_c, TSTAMP_TYPE); in main()
306 err = snd_pcm_sw_params(handle_c, swparams_c); in main()
315 if ((err = snd_pcm_link(handle_c, handle_p)) < 0) { in main()
340 snd_pcm_start(handle_c); in main()
344 snd_pcm_start(handle_c); in main()
352 frames = snd_pcm_wait(handle_c, -1); in main()
358 frames = snd_pcm_readi(handle_c, buffer_c, PERIOD); in main()
368 _gettimestamp(handle_c, &tstamp_c, &trigger_tstamp_c, in main()
446 if (handle_c) in main()
447 snd_pcm_close(handle_c); in main()