Lines Matching refs:chmap
77 snd_pcm_chmap_query_t **chmap; in cras_chmap_caps_match() local
80 for (chmap = chmaps; *chmap; chmap++) { in cras_chmap_caps_match()
81 if ((*chmap)->map.channels != fmt->num_channels) in cras_chmap_caps_match()
89 if ((unsigned)idx >= (*chmap)->map.channels) in cras_chmap_caps_match()
91 if ((*chmap)->map.pos[idx] != CH_TO_ALSA(ch)) { in cras_chmap_caps_match()
97 return *chmap; in cras_chmap_caps_match()
101 for (chmap = chmaps; *chmap; chmap++) { in cras_chmap_caps_match()
102 if ((*chmap)->type == SND_CHMAP_TYPE_FIXED || in cras_chmap_caps_match()
103 (*chmap)->map.channels != fmt->num_channels) in cras_chmap_caps_match()
113 if ((*chmap)->map.pos[i] == CH_TO_ALSA(ch)) { in cras_chmap_caps_match()
123 if (matches && (*chmap)->type == SND_CHMAP_TYPE_VAR) in cras_chmap_caps_match()
124 return *chmap; in cras_chmap_caps_match()
130 ch = CH_TO_CRAS((*chmap)->map.pos[i]); in cras_chmap_caps_match()
138 (*chmap)->map.pos[i + 1])]) { in cras_chmap_caps_match()
144 return *chmap; in cras_chmap_caps_match()
160 snd_pcm_chmap_query_t **chmap; in cras_chmap_caps_conv_matrix() local
166 for (chmap = chmaps; *chmap; chmap++) { in cras_chmap_caps_conv_matrix()
167 if ((*chmap)->map.channels != fmt->num_channels) in cras_chmap_caps_conv_matrix()
172 if (!ALSA_CH_VALID((*chmap)->map.pos[i])) in cras_chmap_caps_conv_matrix()
175 (*chmap)->map.pos[i])] = i; in cras_chmap_caps_conv_matrix()
188 return *chmap; in cras_chmap_caps_conv_matrix()
204 snd_pcm_chmap_query_t **chmap; in cras_chmap_caps_best() local
220 for (chmap = chmaps; *chmap; chmap++) in cras_chmap_caps_best()
221 if ((*chmap)->map.channels == fmt->num_channels) in cras_chmap_caps_best()
222 return *chmap; in cras_chmap_caps_best()