Searched refs:pcm_cap (Results 1 – 1 of 1) sorted by relevance
228 struct pcm *pcm_play =NULL, *pcm_cap=NULL; in play_sample() local265 pcm_cap = pcm_open(card, c_device, PCM_IN, &config); in play_sample()266 if (!pcm_cap || !pcm_is_ready(pcm_cap)) { in play_sample()268 c_device, pcm_get_error(pcm_cap)); in play_sample()283 size = pcm_frames_to_bytes(pcm_cap, pcm_get_buffer_size(pcm_cap)); in play_sample()288 pcm_close(pcm_cap); in play_sample()298 if (pcm_cap != NULL) pcm_start(pcm_cap); in play_sample()307 if (pcm_read(pcm_cap, buffer, size)) { in play_sample()309 c_device, pcm_get_error(pcm_cap)); in play_sample()333 if (pcm_cap != NULL) in play_sample()[all …]