- fixed the routing with use_getput condition.

use_getput will be changed after loading the ttable, so the conversion
  function cannot be determined at this stage.
This commit is contained in:
Takashi Iwai 2003-05-16 14:36:26 +00:00
parent d14884563f
commit 02e9d7c3e6

View file

@ -792,12 +792,7 @@ static int route_load_ttable(snd_pcm_route_params_t *params, snd_pcm_stream_t st
dptr->nsrcs = nsrcs;
if (nsrcs == 0)
dptr->func = snd_pcm_route_convert1_zero;
else if (nsrcs == 1 && !att) {
if (params->use_getput)
dptr->func = snd_pcm_route_convert1_one_getput;
else
dptr->func = snd_pcm_route_convert1_one;
} else
else
dptr->func = snd_pcm_route_convert1_many;
if (nsrcs > 0) {
dptr->srcs = calloc((unsigned int) nsrcs, sizeof(*srcs));