Lines Matching refs:pcm
333 struct pcm *pcm = NULL; in capture_thread_loop() local
362 pcm = pcm_open(capture_config.snd_card_num, in capture_thread_loop()
365 if (pcm && !pcm_is_ready(pcm)) { in capture_thread_loop()
366 ALOGW("%s: %s", __func__, pcm_get_error(pcm)); in capture_thread_loop()
367 pcm_close(pcm); in capture_thread_loop()
368 pcm = NULL; in capture_thread_loop()
378 if (pcm != NULL) in capture_thread_loop()
379 pcm_close(pcm); in capture_thread_loop()
390 ret = pcm_mmap_read(pcm, data, sizeof(data)); in capture_thread_loop()
411 ALOGW("%s: read status %d %s", __func__, ret, pcm_get_error(pcm)); in capture_thread_loop()
416 if (pcm != NULL) in capture_thread_loop()
417 pcm_close(pcm); in capture_thread_loop()