aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-05-23 20:35:07 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:51:00 +0200
commit6ff2903f7cff91d10d2261d5d5b931466ea04cad (patch)
tree1d01611bad2cab29f5bc2a663d98f8d6b6e1a232
parentee3ba0f3960fa6b8aa6a393c72d3477b58bc60eb (diff)
Corrects json controller configurations
Corrects json controller configurations to look more like a definitive hal configuration. Change-Id: I2281df854d408dcf8064a77d1941f4fca8c8b28e Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r--4a-hal-references-boards-cfg/4a-hal-sample1.json74
-rw-r--r--4a-hal-references-boards-cfg/4a-hal-sample2.json76
2 files changed, 51 insertions, 99 deletions
diff --git a/4a-hal-references-boards-cfg/4a-hal-sample1.json b/4a-hal-references-boards-cfg/4a-hal-sample1.json
index 7d51035..a93a4be 100644
--- a/4a-hal-references-boards-cfg/4a-hal-sample1.json
+++ b/4a-hal-references-boards-cfg/4a-hal-sample1.json
@@ -15,53 +15,29 @@
"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"
- }
- ]
+ "controls": [
+ {
+ "uid": "Master-Volume-Set",
+ "info": "Set Master Volume",
+ "privileges": "audio",
+ "action": "api://4a-hal-manager#ping"
+ },
+ {
+ "uid": "Master-Volume-Ramp",
+ "info": "Ramp master Volume",
+ "privileges": "audio",
+ "action": "api://4a-hal-manager#ping"
+ },
+ {
+ "uid": "ping2",
+ "info": "Ping hal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "events": [
+ {
+ "uid": "api/status_changed",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ]
} \ No newline at end of file
diff --git a/4a-hal-references-boards-cfg/4a-hal-sample2.json b/4a-hal-references-boards-cfg/4a-hal-sample2.json
index 6bd30b8..8448b4f 100644
--- a/4a-hal-references-boards-cfg/4a-hal-sample2.json
+++ b/4a-hal-references-boards-cfg/4a-hal-sample2.json
@@ -15,53 +15,29 @@
"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"
- }
- ]
-}
+ "controls": [
+ {
+ "uid": "Master-Volume-Set",
+ "info": "Set Master Volume",
+ "privileges": "audio",
+ "action": "api://4a-hal-manager#ping"
+ },
+ {
+ "uid": "Master-Volume-Ramp",
+ "info": "Ramp master Volume",
+ "privileges": "audio",
+ "action": "api://4a-hal-manager#ping"
+ },
+ {
+ "uid": "ping2",
+ "info": "Ping hal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "events": [
+ {
+ "uid": "api/status_changed",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ]
+} \ No newline at end of file