Lines Matching full:matrix

37  * + very generic and compact, provided that the supplied matrix map is in a
43 * + 'matrix' is kind of 0x7a69, due to prolong mental block.
80 } matrix[SND_CHN_T_MAX + 1];
132 for (i = 0; info->matrix[i].chn[0] != SND_CHN_T_EOF; \
134 if (info->matrix[i].chn[0] == SND_CHN_T_NULL) { \
139 } else if (info->matrix[i].chn[1] == \
142 src + info->matrix[i].chn[0]); \
151 info->matrix[i].chn[j] != SND_CHN_T_EOF; \
154 src + info->matrix[i].chn[j]); \
158 accum = (accum * info->matrix[i].mul) >> \
159 info->matrix[i].shift; \
233 for (i = 0; i < nitems(info->matrix); i++) {
235 j < (sizeof(info->matrix[i].chn) /
236 sizeof(info->matrix[i].chn[0])); j++) {
237 info->matrix[i].chn[j] = SND_CHN_T_EOF;
239 info->matrix[i].mul = 1;
240 info->matrix[i].shift = 0;
254 for (i = 0; info->matrix[i].chn[0] != SND_CHN_T_EOF;
256 if (info->matrix[i].chn[0] == SND_CHN_T_NULL) {
260 } else if (info->matrix[i].chn[1] ==
262 v = info->rd(src + info->matrix[i].chn[0]);
270 info->matrix[i].chn[j] != SND_CHN_T_EOF;
272 v = info->rd(src + info->matrix[i].chn[j]);
276 accum = (accum * info->matrix[i].mul) >>
277 info->matrix[i].shift;
308 * If both in and out are part of standard matrix and identical, skip
316 * Special case for mono input matrix. If the output supports
335 info->matrix[ch].chn[0] = SND_CHN_T_NULL;
345 info->matrix[ch].chn[j++] =
348 info->matrix[ch].chn[j++] =
369 info->matrix[ch].mul = mul;
370 info->matrix[ch].shift = shift;
377 for (i = 0; info->matrix[i].chn[0] != SND_CHN_T_EOF; i++) {
379 for (j = 0; info->matrix[i].chn[j] != SND_CHN_T_EOF; j++) {
383 (info->matrix[i].chn[j] == SND_CHN_T_NULL) ?
384 0xffffffff : info->matrix[i].chn[j] / info->bps);
387 info->matrix[i].mul, info->matrix[i].shift);
474 if (info->matrix[0].chn[0] == SND_CHN_T_EOF)
569 * feeder_matrix_default_channel_map(): Ditto, but return matrix map
586 * matrix.
613 * feeder_matrix_format_id(): For a given audio format, return its matrix
634 * feeder_matrix_format_map(): For a given audio format, return its matrix
655 * feeder_matrix_id_map(): For a given matrix id, return its matrix map.
802 /* channel not exist in matrix */