From 2838587fc0d118d504e6ef8e04b98f262f29a712 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Sun, 10 Jun 2018 03:30:07 +0200 Subject: Add default configuration of softmmixer Add default configuration of softmmixer when using in 4a. Change-Id: I53df4f57b8f77366117c32e1f4ff70d83253fdef Signed-off-by: Jonathan Aillet --- conf.d/project/etc/smixer-4a-default.json | 55 +++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 conf.d/project/etc/smixer-4a-default.json 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} + ] + } + } + } + ] +} -- cgit 1.2.3-korg