tizenaudio-policy: Apply volume type to output stream of module-loopback 20/197420/1
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 11 Jan 2019 05:38:21 +0000 (14:38 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Fri, 11 Jan 2019 05:39:47 +0000 (14:39 +0900)
commit9f1bc5fd3c574249ebf312ec5a8cc7dd07dd3590
tree71cbce1c481ec1230cbb80e51aaed1626c1234fd
parent20e292707eb4fda31445f0cede41bc58b8147271
tizenaudio-policy: Apply volume type to output stream of module-loopback

Output stream of module-loopback has not been applied volume type.
It is fixed and now it is possible to control the volume of the
output stream in case of loopback feature if a volume type is defined
to the loopback role in stream-map.json.

Here's an example to use media volume type.(in stream-map.json)
  {
    "role":"loopback",
    "priority" : 2,
    "route-type" : "manual",
    "volume-types":{"in":"none","out":"media"},
    "avail-in-devices":["builtin-mic","usb-audio"],
    "avail-out-devices":["builtin-speaker","usb-audio","bt-a2dp"],
    "avail-frameworks":["sound-manager"]
  },

Change-Id: I8335f84817ff6a3d7282c283c150c96baccf6f99
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
packaging/pulseaudio-modules-tizen.spec
src/module-tizenaudio-policy.c
src/stream-manager.c
src/stream-manager.h