Lines Matching refs:params
82 const snd_pcm_route_params_t *params);
104 snd_pcm_route_params_t params;
118 const snd_pcm_route_params_t *params)
120 snd_pcm_area_silence(dst_area, dst_offset, frames, params->dst_sfmt);
132 const snd_pcm_route_params_t *params)
155 frames, ttable, params);
159 conv = conv_labels[params->conv_idx];
182 const snd_pcm_route_params_t *params)
206 frames, ttable, params);
210 get = get32_labels[params->get_idx];
211 put = put32_labels[params->put_idx];
234 const snd_pcm_route_params_t *params)
288 frames, ttable, params);
291 if (params->use_getput)
295 frames, ttable, params);
300 frames, ttable, params);
304 zero = zero_labels[params->sum_idx];
305 get32 = get32_labels[params->get_idx];
306 add = add_labels[params->sum_idx * 2 + ttable->att];
307 norm = norm_labels[params->sum_idx * 2 + ttable->att];
308 put32 = put32_labels[params->put_idx];
407 snd_pcm_route_params_t *params)
413 dstp = params->dsts;
416 if (dst_channel >= params->ndsts)
420 frames, dstp, params);
425 frames, dstp, params);
434 snd_pcm_route_params_t *params = &route->params;
437 if (params->dsts) {
438 for (dst_channel = 0; dst_channel < params->ndsts; ++dst_channel) {
439 free(params->dsts[dst_channel].srcs);
441 free(params->dsts);
448 static int snd_pcm_route_hw_refine_cprepare(snd_pcm_t *pcm ATTRIBUTE_UNUSED, snd_pcm_hw_params_t *params)
453 err = _snd_pcm_hw_param_set_mask(params, SND_PCM_HW_PARAM_ACCESS,
457 err = _snd_pcm_hw_param_set_mask(params, SND_PCM_HW_PARAM_FORMAT,
461 err = _snd_pcm_hw_params_set_subformat(params, SND_PCM_SUBFORMAT_STD);
464 err = _snd_pcm_hw_param_set_min(params, SND_PCM_HW_PARAM_CHANNELS, 1, 0);
467 params->info &= ~(SND_PCM_INFO_MMAP | SND_PCM_INFO_MMAP_VALID);
489 static int snd_pcm_route_hw_refine_schange(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
507 err = _snd_pcm_hw_params_refine(sparams, links, params);
513 static int snd_pcm_route_hw_refine_cchange(snd_pcm_t *pcm, snd_pcm_hw_params_t *params,
531 err = _snd_pcm_hw_params_refine(params, links, sparams);
537 static int snd_pcm_route_hw_refine(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
539 return snd_pcm_hw_refine_slave(pcm, params,
547 static int snd_pcm_route_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t * params)
552 int err = snd_pcm_hw_params_slave(pcm, params,
561 err = INTERNAL(snd_pcm_hw_params_get_format)(params, &src_format);
565 err = INTERNAL(snd_pcm_hw_params_get_format)(params, &dst_format);
570 route->params.use_getput =
575 route->params.get_idx = snd_pcm_linear_get_index(src_format, SND_PCM_FORMAT_S32);
576 route->params.put_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S32, dst_format);
577 route->params.conv_idx = snd_pcm_linear_convert_index(src_format, dst_format);
578 route->params.src_size = snd_pcm_format_width(src_format) / 8;
579 route->params.dst_sfmt = dst_format;
581 route->params.sum_idx = FLOAT;
583 route->params.sum_idx = UINT64;
605 size, &route->params);
627 size, &route->params);
644 nsrcs = route->params.nsrcs;
653 for (dst = 0; dst < route->params.ndsts; dst++) {
654 snd_pcm_route_ttable_dst_t *d = &route->params.dsts[dst];
692 for (dst = 0; dst < route->params.ndsts; dst++) {
693 snd_pcm_route_ttable_dst_t *d = &route->params.dsts[dst];
930 static int route_load_ttable(snd_pcm_route_params_t *params, snd_pcm_stream_t stream,
949 params->ndsts = dused;
950 params->nsrcs = sused;
951 dptr = calloc(dused, sizeof(*params->dsts));
954 params->dsts = dptr;
1059 err = route_load_ttable(&route->params, pcm->stream, tt_ssize, ttable, tt_cused, tt_sused);