Lines Matching refs:sync_ptr
255 struct snd_pcm_sync_ptr *sync_ptr; member
337 if (pcm->sync_ptr) { in pcm_sync_ptr()
338 pcm->sync_ptr->flags = flags; in pcm_sync_ptr()
339 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SYNC_PTR, pcm->sync_ptr) < 0) in pcm_sync_ptr()
347 if (pcm->sync_ptr) in pcm_hw_mmap_status()
376 pcm->sync_ptr = calloc(1, sizeof(*pcm->sync_ptr)); in pcm_hw_mmap_status()
377 if (!pcm->sync_ptr) in pcm_hw_mmap_status()
379 pcm->mmap_status = &pcm->sync_ptr->s.status; in pcm_hw_mmap_status()
380 pcm->mmap_control = &pcm->sync_ptr->c.control; in pcm_hw_mmap_status()
392 if (pcm->sync_ptr) { in pcm_hw_munmap_status()
393 free(pcm->sync_ptr); in pcm_hw_munmap_status()
394 pcm->sync_ptr = NULL; in pcm_hw_munmap_status()