Lines Matching refs:ttable
82 const snd_pcm_route_ttable_dst_t *ttable,
118 const snd_pcm_route_ttable_dst_t* ttable ATTRIBUTE_UNUSED, in snd_pcm_route_convert1_zero()
132 const snd_pcm_route_ttable_dst_t* ttable, in snd_pcm_route_convert1_one() argument
144 for (srcidx = 0; srcidx < ttable->nsrcs && srcidx < src_channels; ++srcidx) { in snd_pcm_route_convert1_one()
145 unsigned int channel = ttable->srcs[srcidx].channel; in snd_pcm_route_convert1_one()
152 if (srcidx == ttable->nsrcs || srcidx == src_channels) { in snd_pcm_route_convert1_one()
156 frames, ttable, params); in snd_pcm_route_convert1_one()
182 const snd_pcm_route_ttable_dst_t* ttable, in snd_pcm_route_convert1_one_getput() argument
195 for (srcidx = 0; srcidx < ttable->nsrcs && srcidx < src_channels; ++srcidx) { in snd_pcm_route_convert1_one_getput()
196 unsigned int channel = ttable->srcs[srcidx].channel; in snd_pcm_route_convert1_one_getput()
203 if (srcidx == ttable->nsrcs || srcidx == src_channels) { in snd_pcm_route_convert1_one_getput()
207 frames, ttable, params); in snd_pcm_route_convert1_one_getput()
234 const snd_pcm_route_ttable_dst_t* ttable, in snd_pcm_route_convert1_many() argument
265 int nsrcs = ttable->nsrcs; in snd_pcm_route_convert1_many()
275 unsigned int channel = ttable->srcs[srcidx].channel; in snd_pcm_route_convert1_many()
281 src_tt[srcidx1] = ttable->srcs[srcidx]; in snd_pcm_route_convert1_many()
289 frames, ttable, params); in snd_pcm_route_convert1_many()
296 frames, ttable, params); in snd_pcm_route_convert1_many()
301 frames, ttable, params); in snd_pcm_route_convert1_many()
307 add = add_labels[params->sum_idx * 2 + ttable->att]; in snd_pcm_route_convert1_many()
308 norm = norm_labels[params->sum_idx * 2 + ttable->att]; in snd_pcm_route_convert1_many()
931 snd_pcm_route_ttable_entry_t *ttable, in route_load_ttable() argument
961 v = ttable[src_channel * smul + dst_channel * dmul]; in route_load_ttable()
1018 snd_pcm_route_ttable_entry_t *ttable, in snd_pcm_route_open() argument
1026 assert(pcmp && slave && ttable); in snd_pcm_route_open()
1058 err = route_load_ttable(&route->params, pcm->stream, tt_ssize, ttable, tt_cused, tt_sused); in snd_pcm_route_open()
1143 static int _snd_pcm_route_load_ttable(snd_config_t *tt, snd_pcm_route_ttable_entry_t *ttable, in _snd_pcm_route_load_ttable() argument
1154 ttable[k] = 0.0; in _snd_pcm_route_load_ttable()
1203 ttable[cchannel * tt_ssize + schannel] = value; in _snd_pcm_route_load_ttable()
1227 int snd_pcm_route_load_ttable(snd_config_t *tt, snd_pcm_route_ttable_entry_t *ttable, in snd_pcm_route_load_ttable() argument
1232 return _snd_pcm_route_load_ttable(tt, ttable, tt_csize, tt_ssize, in snd_pcm_route_load_ttable()
1301 snd_pcm_route_ttable_entry_t *ttable = NULL; in _snd_pcm_route_open() local
1363 free(ttable); in _snd_pcm_route_open()
1371 free(ttable); in _snd_pcm_route_open()
1397 ttable = malloc(csize * ssize * sizeof(snd_pcm_route_ttable_entry_t)); in _snd_pcm_route_open()
1398 if (ttable == NULL) { in _snd_pcm_route_open()
1404 err = _snd_pcm_route_load_ttable(tt, ttable, csize, ssize, in _snd_pcm_route_open()
1408 free(ttable); in _snd_pcm_route_open()
1415 ttable, ssize, in _snd_pcm_route_open()
1418 free(ttable); in _snd_pcm_route_open()