Lines Matching defs:maps
8272 * \!brief Query the available channel maps
8292 * \param maps the array pointer to release
8294 void snd_pcm_free_chmaps(snd_pcm_chmap_query_t **maps)
8297 if (!maps)
8299 for (p = maps; *p; p++)
8301 free(maps);
8606 snd_pcm_chmap_query_t **maps;
8608 maps = calloc(2, sizeof(*maps));
8609 if (!maps)
8611 if (_copy_to_fixed_query_map(maps, src)) {
8612 free(maps);
8615 return maps;
8630 /* make a copy of channel maps */
8635 snd_pcm_chmap_query_t **maps;
8641 maps = calloc(nums + 1, sizeof(*maps));
8642 if (!maps)
8645 maps[i] = malloc((src[i]->map.channels + 2) * sizeof(int));
8646 if (!maps[i]) {
8647 snd_pcm_free_chmaps(maps);
8650 memcpy(maps[i], src[i], (src[i]->map.channels + 2) * sizeof(int));
8652 return maps;
8657 _snd_pcm_choose_fixed_chmap(snd_pcm_t *pcm, snd_pcm_chmap_query_t * const *maps)
8661 for (p = maps; *p; p++) {
8675 snd_pcm_chmap_query_t **maps;
8688 maps = calloc(nums + 1, sizeof(*maps));
8689 if (!maps)
8701 if (_copy_to_fixed_query_map(maps + nums, chmap)) {
8708 return maps;
8711 snd_pcm_free_chmaps(maps);