summaryrefslogtreecommitdiffstats
path: root/conf.d/project/json.d/onload-aaaa-sample.json
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-25 01:10:00 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-25 01:10:00 +0200
commit7dda5549b51ce1bbf674c620a5715986d7da4ffd (patch)
tree57b0af6551e55c1207a7d8cbae4fa573fbf85541 /conf.d/project/json.d/onload-aaaa-sample.json
parentb6e3522aae05d770b06d3af7c0cbf71d3a3a447f (diff)
Fix Initial Volume for Jabra
Diffstat (limited to 'conf.d/project/json.d/onload-aaaa-sample.json')
-rw-r--r--conf.d/project/json.d/onload-aaaa-sample.json103
1 files changed, 103 insertions, 0 deletions
diff --git a/conf.d/project/json.d/onload-aaaa-sample.json b/conf.d/project/json.d/onload-aaaa-sample.json
new file mode 100644
index 0000000..c95a62f
--- /dev/null
+++ b/conf.d/project/json.d/onload-aaaa-sample.json
@@ -0,0 +1,103 @@
+{
+ "$schema": "ToBeDone",
+ "metadata": {
+ "label": "sample-aaaa-control",
+ "info": "Sample of Video AAAA controls",
+ "name": "afb-sample-controller",
+ "version": "1.0"
+ },
+ "onload": [{
+ "label": "onload-default",
+ "info": "onload initialisation config",
+ "require": ["alsacore","jabra-usb","intel-hda","hal-most-unicens"],
+ "actions":
+ {
+ "label": "control-init",
+ "lua": "_Audio_Controller_Init",
+ "args": {
+ "evtname": "agl-audio"
+ }
+ }
+ }],
+ "controls":
+ [
+ {
+ "label": "Multimedia",
+ "permissions": "urn:AGL:permission:audio:public:multimedia",
+ "actions": {
+ "label": "authorize-multimedia",
+ "lua": "_Temporarily_Control"
+ }
+ }, {
+ "label": "Navigation",
+ "permissions": "urn:AGL:permission:audio:public:navigation",
+ "actions": {
+ "label": "authorize-navigation",
+ "lua": "_Temporarily_Control",
+ "args": {
+ "ctl" : "Multimedia_Playback_Volume",
+ "val": 40
+ }
+ }
+ }, {
+ "label": "Telephony",
+ "permissions": "urn:AGL:permission:audio:public:telephony",
+ "actions": {
+ "label": "authorize-multimedia",
+ "lua": "_Temporarily_Control",
+ "args": {
+ "ctl" : "Multimedia_Playback_Volume",
+ "val": 20
+ }
+ }
+ }, {
+ "label": "Emergency",
+ "permissions": "urn:AGL:permission:audio:public:emergency",
+ "actions": {
+ "label": "authorize-multimedia",
+ "lua": "_Temporarily_Control",
+ "args": {
+ "ctl" : "Multimedia_Playback_Switch",
+ "val": 0
+ },
+ "label": "authorize-multimedia",
+ "lua": "_Temporarily_Control",
+ "args": {
+ "ctl" : "Navigation_Playback_Switch",
+ "val": 0
+ }
+ }
+ }
+ ],
+ "events":
+ [
+ {
+ "label": "ReverseEngage",
+ "actions": [{
+ "label": "adjust_volume-reverse",
+ "lua": "_Temporarily_Control",
+ "args": {
+ "ctl": "Multimedia_Playback_Volume",
+ "val": 20
+ }
+ },
+ {
+ "label": "prevent-telephony",
+ "lua": "_Temporarily_Control",
+ "args": {
+ "ctl": "Telephony_Playback_Switch",
+ "val": 0
+ }
+ }
+ ]
+ },
+ {
+ "label": "SpeedChanged",
+ "actions": {
+ "label": "adjust_volume",
+ "lua": "_Adjust_Volume"
+ }
+ }
+ ]
+}
+