summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-05-17 18:54:58 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:51:00 +0200
commit28642c7d0bdf9ab9617ce78df378cba12c2ef8de (patch)
tree47d791b1b37640334ac74a24818972b675a4cd4f
parent7d879a6e180193d772896ba20b8c1c7d53e2a14f (diff)
Add HAL configuration example json.
Add HAL configuration example json which will be used to create controller APIs, each json file will correspond to an HAL API. Content of json is a descirption of a different HAL controller. Add compilation configuration for 4a-hal-gezneric project. Change-Id: If681563a5fa378a378906653538405093e4ce5ff Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r--4a-hal-references-boards-cfg/4a-hal-sample1.json71
-rw-r--r--4a-hal-references-boards-cfg/4a-hal-sample2.json71
2 files changed, 142 insertions, 0 deletions
diff --git a/4a-hal-references-boards-cfg/4a-hal-sample1.json b/4a-hal-references-boards-cfg/4a-hal-sample1.json
new file mode 100644
index 0000000..cf4a9f3
--- /dev/null
+++ b/4a-hal-references-boards-cfg/4a-hal-sample1.json
@@ -0,0 +1,71 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "4a-hal-sample1",
+ "version": "0.9",
+ "api": "4a-hal-sample1",
+ "info": "Basic Audio Policy Control for Audio-4a"
+ },
+ "hal-metadata": {
+ "sndcard": "NOT_TESTED",
+ "author": "Jonathan Aillet",
+ "date": "2018-05-18"
+ },
+ "onload": [
+ {
+ "uid": "init-audio-hal",
+ "info": "Retrieve Active HAL",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "controls":
+ [
+ {
+ "uid": "Multimedia-Role",
+ "info": "Request a multimedia stream",
+ "privileges": "audio:multimedia",
+ "action": "api://4a-hal-manager#ping",
+ "args": {
+ "ctl": "Multimedia_Playback_Volume",
+ "val": 80
+ }
+ },
+ {
+ "uid": "Navigation-Role",
+ "privileges": "audio:navigation",
+ "action": "api://4a-hal-manager#ping",
+ "args": {
+ "ctl": "Multimedia_Playback_Volume",
+ "val": 40
+ }
+ },
+ {
+ "uid": "Telephony-Role",
+ "privileges": "audio:telephony",
+ "action": "api://4a-hal-manager#ping",
+ "args": {
+ "ctl": "Navigation_Playback_Volume",
+ "val": 0
+ }
+ },
+ {
+ "uid": "Release-Role",
+ "privileges": "audio",
+ "action": "api://4a-hal-manager#ping"
+ },
+ {
+ "uid": "Signal-Timeout",
+ "info": "Arm a timer and send event after timeout",
+ "privileges": "audio:signal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "events":
+ [
+ {
+ "uid": "api/status_changed",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ]
+}
+
diff --git a/4a-hal-references-boards-cfg/4a-hal-sample2.json b/4a-hal-references-boards-cfg/4a-hal-sample2.json
new file mode 100644
index 0000000..5165a37
--- /dev/null
+++ b/4a-hal-references-boards-cfg/4a-hal-sample2.json
@@ -0,0 +1,71 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "4a-hal-sample2",
+ "version": "0.9",
+ "api": "4a-hal-sample2",
+ "info": "Basic Audio Policy Control for Audio-4a"
+ },
+ "hal-metadata": {
+ "sndcard": "NOT_TESTED",
+ "author": "Jonathan Aillet",
+ "date": "2018-05-18"
+ },
+ "onload": [
+ {
+ "uid": "init-audio-hal",
+ "info": "Retrieve Active HAL",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "controls":
+ [
+ {
+ "uid": "Multimedia-Role",
+ "info": "Request a multimedia stream",
+ "privileges": "audio:multimedia",
+ "action": "api://4a-hal-manager#ping",
+ "args": {
+ "ctl": "Multimedia_Playback_Volume",
+ "val": 80
+ }
+ },
+ {
+ "uid": "Navigation-Role",
+ "privileges": "audio:navigation",
+ "action": "api://4a-hal-manager#ping",
+ "args": {
+ "ctl": "Multimedia_Playback_Volume",
+ "val": 40
+ }
+ },
+ {
+ "uid": "Telephony-Role",
+ "privileges": "audio:telephony",
+ "action": "api://4a-hal-manager#ping",
+ "args": {
+ "ctl": "Navigation_Playback_Volume",
+ "val": 0
+ }
+ },
+ {
+ "uid": "Release-Role",
+ "privileges": "audio",
+ "action": "api://4a-hal-manager#ping"
+ },
+ {
+ "uid": "Signal-Timeout",
+ "info": "Arm a timer and send event after timeout",
+ "privileges": "audio:signal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "events":
+ [
+ {
+ "uid": "api/status_changed",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ]
+}
+