From: Takashi Iwai Date: Fri, 16 May 2003 14:36:26 +0000 (+0000) Subject: - fixed the routing with use_getput condition. X-Git-Tag: v1.0.3~171 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=02e9d7c3e6d10bf67ee97215a0b1114d256b3ada;p=alsa-lib.git - 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. --- diff --git a/src/pcm/pcm_route.c b/src/pcm/pcm_route.c index 72faae07..b7ecbc2c 100644 --- a/src/pcm/pcm_route.c +++ b/src/pcm/pcm_route.c @@ -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));