Lines Matching refs:mmap_channels
268 if (CHECK_SANITY(pcm->mmap_channels || pcm->running_areas)) { in snd_pcm_mmap()
280 pcm->mmap_channels = calloc(pcm->channels, sizeof(pcm->mmap_channels[0])); in snd_pcm_mmap()
281 if (!pcm->mmap_channels) in snd_pcm_mmap()
285 free(pcm->mmap_channels); in snd_pcm_mmap()
286 pcm->mmap_channels = NULL; in snd_pcm_mmap()
290 snd_pcm_channel_info_t *i = &pcm->mmap_channels[c]; in snd_pcm_mmap()
294 free(pcm->mmap_channels); in snd_pcm_mmap()
296 pcm->mmap_channels = NULL; in snd_pcm_mmap()
302 snd_pcm_channel_info_t *i = &pcm->mmap_channels[c]; in snd_pcm_mmap()
315 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; in snd_pcm_mmap()
379 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; in snd_pcm_mmap()
411 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; in snd_pcm_mmap()
446 if (CHECK_SANITY(! pcm->mmap_channels)) { in snd_pcm_munmap()
457 snd_pcm_channel_info_t *i = &pcm->mmap_channels[c]; in snd_pcm_munmap()
463 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; in snd_pcm_munmap()
492 snd_pcm_channel_info_t *i1 = &pcm->mmap_channels[c1]; in snd_pcm_munmap()
519 free(pcm->mmap_channels); in snd_pcm_munmap()
521 pcm->mmap_channels = NULL; in snd_pcm_munmap()