OSDN Git Service

- fixed the routing with use_getput condition.
authorTakashi Iwai <tiwai@suse.de>
Fri, 16 May 2003 14:36:26 +0000 (14:36 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 16 May 2003 14:36:26 +0000 (14:36 +0000)
  use_getput will be changed after loading the ttable, so the conversion
  function cannot be determined at this stage.

src/pcm/pcm_route.c

index 72faae0..b7ecbc2 100644 (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));