summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-10 03:30:07 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-06-10 21:36:23 +0200
commit2838587fc0d118d504e6ef8e04b98f262f29a712 (patch)
treee50ba03d7d6b80ecc4a1489a75521515539245ba
parent4abacbe607fc63d5f51e8e41e0e7243c4ea46952 (diff)
Add default configuration of softmmixer
Add default configuration of softmmixer when using in 4a. Change-Id: I53df4f57b8f77366117c32e1f4ff70d83253fdef Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r--conf.d/project/etc/smixer-4a-default.json55
1 files changed, 55 insertions, 0 deletions
diff --git a/conf.d/project/etc/smixer-4a-default.json b/conf.d/project/etc/smixer-4a-default.json
new file mode 100644
index 0000000..962f750
--- /dev/null
+++ b/conf.d/project/etc/smixer-4a-default.json
@@ -0,0 +1,55 @@
+{
+ "$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"],
+ }
+ ],
+ "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}
+ ]
+ }
+ }
+ }
+ ]
+}