Lines Matching refs:sync_ptr
99 struct snd_pcm_sync_ptr *sync_ptr;
145 hw->sync_ptr->flags = flags;
146 if (ioctl(hw->fd, SNDRV_PCM_IOCTL_SYNC_PTR, hw->sync_ptr) < 0) {
1021 static bool map_status_data(snd_pcm_hw_t *hw, struct snd_pcm_sync_ptr *sync_ptr,
1035 mmap_status = &sync_ptr->s.status;
1047 struct snd_pcm_sync_ptr *sync_ptr,
1061 mmap_control = &sync_ptr->c.control;
1075 struct snd_pcm_sync_ptr *sync_ptr;
1079 sync_ptr = malloc(sizeof(*sync_ptr));
1080 if (sync_ptr == NULL)
1082 memset(sync_ptr, 0, sizeof(*sync_ptr));
1085 map_status_data(hw, sync_ptr, force_fallback);
1087 map_control_data(hw, sync_ptr, force_fallback);
1091 hw->sync_ptr = sync_ptr;
1093 free(sync_ptr);
1094 hw->sync_ptr = NULL;
1150 free(hw->sync_ptr);
1156 hw->sync_ptr = NULL;
1608 * \param sync_ptr_ioctl Boolean flag for sync_ptr ioctl