ladspa-sink: Add sink_master argument to enable filter-apply to load the module 04/123404/4
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Thu, 13 Apr 2017 22:45:00 +0000 (07:45 +0900)
committerKimJeongYeon <jeongyeon.kim@samsung.com>
Wed, 10 May 2017 06:16:17 +0000 (15:16 +0900)
commit4340a7886d08855c31b0c507b2110eee2ab4011c
treeb8952eea45f4e831e8f9c1660f989f4fa0b8b2d2
parentf78bf7ebd5e0fa08f019369cfadf3b0db0505578
ladspa-sink: Add sink_master argument to enable filter-apply to load the module

Currently, module-filter-apply cannot load module-ladspa-sink because filter-apply
provides the argument "sink_master" but ladspa-sink expects "master" instead.

Therefore this patch adds the sink_master argument to module-ladspa-sink.

Additionally, the autoloaded argument was also added.

This patch based on:
https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=145da09aca8b54d611999ebf661b05ceb9e1c62f

ladspa-sink, virtual-surround-sink: fix master sink argument handling

The old code worked incorrectly in several situations. For example,
trying to use the "master" argument wouldn't work, because if
"sink_master" wasn't specified, pa_namereg_get() would pick the default
sink as the master sink.

This patch based on:
https://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=65f7ca44148e8c79fa965a6ecbc889e3f9668178

Signed-off-by: KimJeongYeon <jeongyeon.kim@samsung.com>
Change-Id: I15382f0f2551bcd2d3bcb9bf117914ed2cc3e5ff
src/modules/module-ladspa-sink.c