Lines Matching refs:sync_ptr
169 struct snd_pcm_sync_ptr *sync_ptr; member
241 if (pcm->sync_ptr) { in pcm_sync_ptr()
242 pcm->sync_ptr->flags = flags; in pcm_sync_ptr()
243 if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_SYNC_PTR, pcm->sync_ptr) < 0) in pcm_sync_ptr()
251 if (pcm->sync_ptr) in pcm_hw_mmap_status()
280 pcm->sync_ptr = calloc(1, sizeof(*pcm->sync_ptr)); in pcm_hw_mmap_status()
281 if (!pcm->sync_ptr) in pcm_hw_mmap_status()
283 pcm->mmap_status = &pcm->sync_ptr->s.status; in pcm_hw_mmap_status()
284 pcm->mmap_control = &pcm->sync_ptr->c.control; in pcm_hw_mmap_status()
296 if (pcm->sync_ptr) { in pcm_hw_munmap_status()
297 free(pcm->sync_ptr); in pcm_hw_munmap_status()
298 pcm->sync_ptr = NULL; in pcm_hw_munmap_status()