summaryrefslogtreecommitdiffstats
path: root/switch.c
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@iot.bzh>2016-07-06 10:16:36 +0200
committerYannick Gicquel <yannick.gicquel@iot.bzh>2016-10-11 17:09:07 +0200
commit2478974dfde05063cbf0233e3d3c434ca2f46c7c (patch)
tree86395f3b4c2c35261e051c237d7ae17f9ca3994a /switch.c
parentf259ec53101a3754cd2da24a369ea48bb1947e62 (diff)
Map labels to classes, map routing groups to audio adapters
Change-Id: I563aa146eba8de594900c02b44f19f526a5cdc0e Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'switch.c')
-rw-r--r--switch.c10
1 files changed, 4 insertions, 6 deletions
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: