virtual-surround-sink: Add sink_master argument to enable filter-apply to load the... 00/123400/4
authorKimJeongYeon <jeongyeon.kim@samsung.com>
Thu, 13 Apr 2017 22:41:22 +0000 (07:41 +0900)
committerKimJeongYeon <jeongyeon.kim@samsung.com>
Wed, 10 May 2017 06:11:36 +0000 (15:11 +0900)
commit018272df09d6c28d5b34fc25d712189b1f052d06
tree325e5572231fe86f2a19b6a26c441390918a5918
parentf78bf7ebd5e0fa08f019369cfadf3b0db0505578
virtual-surround-sink: Add sink_master argument to enable filter-apply to load the module

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

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

Additionally, the autoloaded argument was also added.

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

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: I25b328ffd308e09c6082ed39ec4aa299a56422bf
src/modules/module-virtual-surround-sink.c