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