Code Review
/
staging
/
agl-audio-plugin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Map labels to classes, map routing groups to audio adapters
[staging/agl-audio-plugin.git]
/
switch.c
diff --git
a/switch.c
b/switch.c
index
954effd
..
8111068
100644
(file)
--- 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:
/* 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:
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:
break;
/* DEVICE TO DEVICE : OK */
case agl_device: