Lines Matching refs:route
434 snd_pcm_route_t *route = pcm->private_data; in snd_pcm_route_close() local
435 snd_pcm_route_params_t *params = &route->params; in snd_pcm_route_close()
444 free(route->chmap); in snd_pcm_route_close()
445 snd_pcm_free_chmaps(route->chmap_override); in snd_pcm_route_close()
474 snd_pcm_route_t *route = pcm->private_data; in snd_pcm_route_hw_refine_sprepare() local
479 if (route->sformat != SND_PCM_FORMAT_UNKNOWN) { in snd_pcm_route_hw_refine_sprepare()
480 _snd_pcm_hw_params_set_format(sparams, route->sformat); in snd_pcm_route_hw_refine_sprepare()
483 if (route->schannels >= 0) { in snd_pcm_route_hw_refine_sprepare()
485 (unsigned int) route->schannels, 0); in snd_pcm_route_hw_refine_sprepare()
493 snd_pcm_route_t *route = pcm->private_data; in snd_pcm_route_hw_refine_schange() local
502 if (route->sformat == SND_PCM_FORMAT_UNKNOWN) in snd_pcm_route_hw_refine_schange()
506 if (route->schannels < 0) in snd_pcm_route_hw_refine_schange()
517 snd_pcm_route_t *route = pcm->private_data; in snd_pcm_route_hw_refine_cchange() local
526 if (route->sformat == SND_PCM_FORMAT_UNKNOWN) in snd_pcm_route_hw_refine_cchange()
530 if (route->schannels < 0) in snd_pcm_route_hw_refine_cchange()
550 snd_pcm_route_t *route = pcm->private_data; in snd_pcm_route_hw_params() local
551 snd_pcm_t *slave = route->plug.gen.slave; in snd_pcm_route_hw_params()
571 route->params.use_getput = in snd_pcm_route_hw_params()
576 route->params.get_idx = snd_pcm_linear_get_index(src_format, SND_PCM_FORMAT_S32); in snd_pcm_route_hw_params()
577 route->params.put_idx = snd_pcm_linear_put_index(SND_PCM_FORMAT_S32, dst_format); in snd_pcm_route_hw_params()
578 route->params.conv_idx = snd_pcm_linear_convert_index(src_format, dst_format); in snd_pcm_route_hw_params()
579 route->params.src_size = snd_pcm_format_width(src_format) / 8; in snd_pcm_route_hw_params()
580 route->params.dst_sfmt = dst_format; in snd_pcm_route_hw_params()
582 route->params.sum_idx = FLOAT; in snd_pcm_route_hw_params()
584 route->params.sum_idx = UINT64; in snd_pcm_route_hw_params()
598 snd_pcm_route_t *route = pcm->private_data; in snd_pcm_route_write_areas() local
599 snd_pcm_t *slave = route->plug.gen.slave; in snd_pcm_route_write_areas()
606 size, &route->params); in snd_pcm_route_write_areas()
620 snd_pcm_route_t *route = pcm->private_data; in snd_pcm_route_read_areas() local
621 snd_pcm_t *slave = route->plug.gen.slave; in snd_pcm_route_read_areas()
628 size, &route->params); in snd_pcm_route_read_areas()
635 snd_pcm_route_t *route = pcm->private_data; in snd_pcm_route_get_chmap() local
639 if (route->chmap_override) in snd_pcm_route_get_chmap()
640 return _snd_pcm_choose_fixed_chmap(pcm, route->chmap_override); in snd_pcm_route_get_chmap()
645 nsrcs = route->params.nsrcs; in snd_pcm_route_get_chmap()
654 for (dst = 0; dst < route->params.ndsts; dst++) { in snd_pcm_route_get_chmap()
655 snd_pcm_route_ttable_dst_t *d = &route->params.dsts[dst]; in snd_pcm_route_get_chmap()
668 snd_pcm_route_t *route = pcm->private_data; in snd_pcm_route_query_chmaps() local
672 if (route->chmap_override) in snd_pcm_route_query_chmaps()
673 return _snd_pcm_copy_chmap_query(route->chmap_override); in snd_pcm_route_query_chmaps()
685 snd_pcm_route_t *route = pcm->private_data; in snd_pcm_route_dump() local
687 if (route->sformat == SND_PCM_FORMAT_UNKNOWN) in snd_pcm_route_dump()
691 snd_pcm_format_name(route->sformat)); in snd_pcm_route_dump()
693 for (dst = 0; dst < route->params.ndsts; dst++) { in snd_pcm_route_dump()
694 snd_pcm_route_ttable_dst_t *d = &route->params.dsts[dst]; in snd_pcm_route_dump()
724 snd_pcm_dump(route->plug.gen.slave, out); in snd_pcm_route_dump()
887 snd_pcm_route_t *route = pcm->private_data; in route_chmap_init() local
888 if (!route->chmap) in route_chmap_init()
895 current = snd_pcm_get_chmap(route->plug.gen.slave); in route_chmap_init()
898 if (current->channels != route->chmap->channels) in route_chmap_init()
901 set_map = memcmp(current->pos, route->chmap->pos, in route_chmap_init()
907 return snd_pcm_set_chmap(route->plug.gen.slave, route->chmap); in route_chmap_init()
1024 snd_pcm_route_t *route; in snd_pcm_route_open() local
1030 route = calloc(1, sizeof(snd_pcm_route_t)); in snd_pcm_route_open()
1031 if (!route) { in snd_pcm_route_open()
1034 snd_pcm_plugin_init(&route->plug); in snd_pcm_route_open()
1035 route->sformat = sformat; in snd_pcm_route_open()
1036 route->schannels = schannels; in snd_pcm_route_open()
1037 route->plug.read = snd_pcm_route_read_areas; in snd_pcm_route_open()
1038 route->plug.write = snd_pcm_route_write_areas; in snd_pcm_route_open()
1039 route->plug.undo_read = snd_pcm_plugin_undo_read_generic; in snd_pcm_route_open()
1040 route->plug.undo_write = snd_pcm_plugin_undo_write_generic; in snd_pcm_route_open()
1041 route->plug.gen.slave = slave; in snd_pcm_route_open()
1042 route->plug.gen.close_slave = close_slave; in snd_pcm_route_open()
1043 route->plug.init = route_chmap_init; in snd_pcm_route_open()
1047 free(route); in snd_pcm_route_open()
1052 pcm->private_data = route; in snd_pcm_route_open()
1056 snd_pcm_set_hw_ptr(pcm, &route->plug.hw_ptr, -1, 0); in snd_pcm_route_open()
1057 snd_pcm_set_appl_ptr(pcm, &route->plug.appl_ptr, -1, 0); 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()
1424 snd_pcm_route_t *route = (*pcmp)->private_data; in _snd_pcm_route_open() local
1426 route->chmap = chmap; in _snd_pcm_route_open()
1427 route->chmap_override = chmaps; in _snd_pcm_route_open()