From b6aec989e0620322250b033bf339db7868d117d3 Mon Sep 17 00:00:00 2001 From: Mark Farrugia Date: Tue, 29 Jan 2019 11:35:44 +1100 Subject: Add support for AVIRT Leverage the new AVIRT driver for a more secure, more dynamically configurable loopback sound driver. To use, replace the file smixer-4a-default.json with smixer-4a-avirt.json, at /usr/libexec/agl/smixer/etc The existing snd-aloop configuration is not broken by this change. The submodule libavirt is temporary, and will be transformed into a library. Change-Id: I827636656c109a7393ad77997e05069a2462ea46 Signed-off-by: Mark Farrugia --- conf.d/project/etc/smixer-4a-avirt.json | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 conf.d/project/etc/smixer-4a-avirt.json (limited to 'conf.d/project/etc/smixer-4a-avirt.json') diff --git a/conf.d/project/etc/smixer-4a-avirt.json b/conf.d/project/etc/smixer-4a-avirt.json new file mode 100644 index 0000000..18d6193 --- /dev/null +++ b/conf.d/project/etc/smixer-4a-avirt.json @@ -0,0 +1,44 @@ +{ + "$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-avirt", + "info": "Map avirt-loop to 4A HAL streams", + "spath": "./package/lib/plugins:./package/var:./lib/plugins:./var:/usr/libexec/agl/smixer", + "libs": ["alsa-softmixer.ctlso"] + } + ], + "onload": [ + { + "uid": "mixer-create-api", + "info": "Create Audio Router", + "action": "plugin://softmixer-avirt#MixerCreate", + "args": { + "uid":"Alsa-Mixer", + "max_loop": 1, + "max_sink": 16, + "max_source": 16, + "max_zone": 16, + "max_stream": 16, + "max_ramp": 6 + } + }, + { + "uid": "mixer-attach-loop", + "info": "Create Audio Router", + "action": "plugin://softmixer-avirt#MixerAttach", + "args": { + "loops" : { + "uid":"AVIRT-Loopback", + "path": "/dev/snd/by-path/platform-snd_avirt.0" + } + } + } + ] +} -- cgit 1.2.3-korg