X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=switch.c;fp=switch.c;h=8111068af502c4fc063fc10e35d331b084f2cbdd;hb=2478974dfde05063cbf0233e3d3c434ca2f46c7c;hp=954effd25b95951a2920ecec35b1220058cee287;hpb=f259ec53101a3754cd2da24a369ea48bb1947e62;p=staging%2Fagl-audio-plugin.git diff --git a/switch.c b/switch.c index 954effd..8111068 100644 --- a/switch.c +++ b/switch.c @@ -103,15 +103,13 @@ bool agl_switch_setup_link (struct userdata *u, agl_node *from, agl_node *to, bo /* DEVICE DESTINATION */ case agl_device: - /* IF THERE IS NO SOURCE : DEFAULT OUTPUT PREROUTE */ - /* if (!from) - return setup_device_output(u, to) != NULL; - else { */ switch (from->implement) { /* STREAM TO DEVICE : OK */ case agl_stream: - //if (!setup_default_stream2dev_link (u, from, to)) - // return false; + sink = agl_utils_get_alsa_sink (u, to->paname); + source = agl_utils_get_null_source (u, from->nullsink); + + from->loopnode = agl_loopnode_create (u, AGL_LOOPNODE_SINK, from->index, source->index, sink->index); break; /* DEVICE TO DEVICE : OK */ case agl_device: