Lines Matching refs:pcm
330 struct pcm *pcm = NULL; in capture_thread_loop() local
359 pcm = pcm_open(SOUND_CARD, CAPTURE_DEVICE, in capture_thread_loop()
361 if (pcm && !pcm_is_ready(pcm)) { in capture_thread_loop()
362 ALOGW("%s: %s", __func__, pcm_get_error(pcm)); in capture_thread_loop()
363 pcm_close(pcm); in capture_thread_loop()
364 pcm = NULL; in capture_thread_loop()
374 if (pcm != NULL) in capture_thread_loop()
375 pcm_close(pcm); in capture_thread_loop()
386 ret = pcm_mmap_read(pcm, data, sizeof(data)); in capture_thread_loop()
407 ALOGW("%s: read status %d %s", __func__, ret, pcm_get_error(pcm)); in capture_thread_loop()
412 if (pcm != NULL) in capture_thread_loop()
413 pcm_close(pcm); in capture_thread_loop()