Searched refs:pcm_cap (Results 1 – 1 of 1) sorted by relevance
223 struct pcm *pcm_play =NULL, *pcm_cap=NULL; in play_sample() local260 pcm_cap = pcm_open(card, c_device, PCM_IN, &config); in play_sample()261 if (!pcm_cap || !pcm_is_ready(pcm_cap)) { in play_sample()263 c_device, pcm_get_error(pcm_cap)); in play_sample()278 size = pcm_frames_to_bytes(pcm_cap, pcm_get_buffer_size(pcm_cap)); in play_sample()283 pcm_close(pcm_cap); in play_sample()293 if (pcm_cap != NULL) pcm_start(pcm_cap); in play_sample()302 if (pcm_read(pcm_cap, buffer, size)) { in play_sample()304 c_device, pcm_get_error(pcm_cap)); in play_sample()328 if (pcm_cap != NULL) in play_sample()[all …]