summaryrefslogtreecommitdiffstats
path: root/4a-hal-references-boards-cfg/4a-hal-sample1.json
blob: 7d5103549fa0f417289cdc19481b2c0d2bdf85ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
{
    "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
    "metadata": {
        "uid": "SND_CARD",
        "version": "0.9",
        "api": "4a-hal-sample1",
        "info": "Basic Audio Policy Control for Audio-4a - Sample 1",
        "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"
                }
            ]
}