summaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2018-04-30 23:30:10 +0200
committerFulup Ar Foll <fulup@iot.bzh>2018-04-30 23:30:10 +0200
commit17edfc4c20cfd855d68e5b0ef044da2e7509f3f3 (patch)
treefe33046462ede30e6faaabbac82e1b75d49f28af /conf.d/project/etc
parent8372b87f2be8fe5b8655001e92572af4d96ddbf6 (diff)
On going effort, now load and support LUA+C plugin
Diffstat (limited to 'conf.d/project/etc')
-rw-r--r--conf.d/project/etc/4a-softmixer-config.json23
-rw-r--r--conf.d/project/etc/CMakeLists.txt2
2 files changed, 20 insertions, 5 deletions
diff --git a/conf.d/project/etc/4a-softmixer-config.json b/conf.d/project/etc/4a-softmixer-config.json
index 9d89f07..db13705 100644
--- a/conf.d/project/etc/4a-softmixer-config.json
+++ b/conf.d/project/etc/4a-softmixer-config.json
@@ -3,18 +3,27 @@
"metadata": {
"uid": "Soft Mixer",
"version": "1.0",
- "api": "soft-mixer",
+ "api": "softmixer",
"info": "Soft Mixer emulating hardware mixer",
- "require": ["alsa-core"]
+ "require": ["alsacore"]
},
"plugins": [
{
"uid": "alsa-router",
"ldpath": "package/lib/plugins",
+ "lua2c": ["AlsaDmix", "AlsaRouter"],
"info": "Map alsa-loop subdevices to 4A HAL streams"
}
],
+ "onload": [
+ {
+ "uid": "init-soft-mixer",
+ "info": "Initialise Audio Router",
+ "lua": "_init_softmixer_"
+ }
+ ],
+
"sndcards": [
{
"uid": "Focusrite_Scarlett_18i8",
@@ -72,11 +81,17 @@
"controls": [
{
"uid": "stream",
- "function": "plugin://alsa-router/stream_ctl"
+ "callback": {
+ "plugin": "alsa-router",
+ "function": "stream_ctl"
+ }
},
{
"uid": "zone",
- "function": "plugin://alsa-router/zone_ctl"
+ "callback": {
+ "plugin": "alsa-router",
+ "function": "zone_ctl"
+ }
}
]
}
diff --git a/conf.d/project/etc/CMakeLists.txt b/conf.d/project/etc/CMakeLists.txt
index 378effc..2e7daa7 100644
--- a/conf.d/project/etc/CMakeLists.txt
+++ b/conf.d/project/etc/CMakeLists.txt
@@ -19,7 +19,7 @@
##################################################
# Control Policy Config file
##################################################
-PROJECT_TARGET_ADD(soft-mixer-config)
+PROJECT_TARGET_ADD(softmixer-config)
file(GLOB CONF_FILES "*.json")