summaryrefslogtreecommitdiffstats
path: root/conf.d/project/etc
diff options
context:
space:
mode:
authorFrederic Marec <frederic.marec@iot.bzh>2018-11-30 10:30:22 +0100
committerFrederic Marec <frederic.marec@iot.bzh>2018-12-04 14:26:28 +0100
commitbab203035f3e2545ef5e947696dc25bcfd1a40b7 (patch)
treed5e9d99933d4f8228e7cbd9371288da54370790a /conf.d/project/etc
parent44e34ee88555ad6d812fb593d56482e61d7785aa (diff)
Add tests for 4a-softmixer
Add test tree Add new config for test Add tests for softmixer Add script to load snd-aloop before test Bug-AGL: SPEC-1796 Change-Id: I6336dbb5689e7baf8f2e8754b23f6aa83b0797d7 Signed-off-by: Frederic Marec <frederic.marec@iot.bzh>
Diffstat (limited to 'conf.d/project/etc')
-rw-r--r--conf.d/project/etc/smixer-smixer-test-config.json60
1 files changed, 60 insertions, 0 deletions
diff --git a/conf.d/project/etc/smixer-smixer-test-config.json b/conf.d/project/etc/smixer-smixer-test-config.json
new file mode 100644
index 0000000..8643175
--- /dev/null
+++ b/conf.d/project/etc/smixer-smixer-test-config.json
@@ -0,0 +1,60 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "Soft Mixer",
+ "version": "1.0",
+ "api": "smixer",
+ "info": "Soft Mixer emulating hardware mixer"
+ },
+ "resources": [
+ {
+ "uid": "softmixer",
+ "info": "Map alsa-loop subdevices to 4A HAL streams",
+ "spath": "./package/lib/plugins:./package/var:./lib/plugins:./var",
+ "libs": ["alsa-softmixer.ctlso", "smixer-test-usb_8ch.lua"]
+ }
+ ],
+ "onload": [
+ {
+ "uid": "mixer-create-api",
+ "info": "Create Audio Router",
+ "action": "plugin://softmixer#MixerCreate",
+ "args": {
+ "uid":"Alsa-Mixer",
+ "max_loop": 1,
+ "max_sink": 8,
+ "max_source": 8,
+ "max_zone": 8,
+ "max_stream": 8,
+ "max_ramp": 4
+ }
+ },
+ {
+ "uid": "mixer-attach-loop",
+ "info": "Create Audio Router",
+ "action": "plugin://softmixer#MixerAttach",
+ "args": {
+ "loops" : {
+ "uid":"Alsa-Loopback",
+ "path": "/dev/snd/by-path/platform-snd_aloop.0",
+ "devices" : {"playback":0, "capture":1},
+ "subdevs" : [
+ {"subdev": 0, "numid": 51, "uid": "loop-legacy"},
+ {"subdev": 1, "numid": 57, "uid": "loop-multimedia"},
+ {"subdev": 2, "numid": 63},
+ {"subdev": 3, "numid": 69},
+ {"subdev": 4, "numid": 75},
+ {"subdev": 5, "numid": 81},
+ {"subdev": 6, "numid": 87},
+ {"subdev": 7, "numid": 93}
+ ]
+ }
+ }
+ },
+ {
+ "uid": "lua-test-attach",
+ "info": "For testing purpose attach stream & zone directly from LUA script to simulate HAL",
+ "action": "lua://softmixer#_mixer_simple_test_"
+ }
+ ]
+}