summaryrefslogtreecommitdiffstats
path: root/4a-hal-cfg-reference/hal-4a-rcar-m3-bt.json
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2018-08-24 20:17:12 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2018-10-08 15:56:09 +0200
commit92eb34c496de489f288c0eb59c9d84d6cf31decd (patch)
treec2b4a69c98ad8cb3017ecb824e7e2955586a572d /4a-hal-cfg-reference/hal-4a-rcar-m3-bt.json
parentdeb99447f014426cf2aed8263932b38d412bd376 (diff)
Add bluetooth hal plugin
Add first version of a hal plugin that will handle hal that wants bluetooth as an audio device. Change-Id: I4f5628ef9688c417b1b443fc3c4948cb23c17214 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal-cfg-reference/hal-4a-rcar-m3-bt.json')
-rw-r--r--4a-hal-cfg-reference/hal-4a-rcar-m3-bt.json198
1 files changed, 198 insertions, 0 deletions
diff --git a/4a-hal-cfg-reference/hal-4a-rcar-m3-bt.json b/4a-hal-cfg-reference/hal-4a-rcar-m3-bt.json
new file mode 100644
index 0000000..c2483ce
--- /dev/null
+++ b/4a-hal-cfg-reference/hal-4a-rcar-m3-bt.json
@@ -0,0 +1,198 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "/dev/snd/by-path/platform-sound",
+ "version": "0.9",
+ "api": "4a-hal-rcar-m3-bt",
+ "require": [ "alsacore", "smixer" ],
+ "info": "4a hal for Rcar M3 device",
+ "author": "Jonathan Aillet",
+ "date": "2018-06-13"
+ },
+ "resources": [
+ {
+ "uid": "hal-bt",
+ "info": "Bluetooth hal plugin to get selected bluetooth device as an input by tweaking softmixer configuration",
+ "spath": "./package/lib/plugins:./package/var:./lib/plugins:./var:/usr/libexec/agl/4a-hal/lib/plugins",
+ "libs": ["hal-bt.ctlso"]
+ }
+ ],
+ "onload": [
+ {
+ "uid": "init-bt-plugin",
+ "info": "Init Bluetooth hal plugin",
+ "action": "plugin://hal-bt#init"
+ }
+ ],
+ "controls": [
+ {
+ "uid": "ping",
+ "info": "Ping hal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "events": [
+ {
+ "uid": "Bluetooth-Manager/device_updated",
+ "action": "plugin://hal-bt#events"
+ }
+ ],
+ "halmap": [
+ {
+ "uid": "agl-master-playback-volume",
+ "alsa": {
+ "name": "DVC Out Playback Volume",
+ "value": 80
+ }
+ },
+ {
+ "uid": "agl-pcm-playback-volume",
+ "alsa": {
+ "name": "DVC Out Playback Volume",
+ "value": 80
+ }
+ },
+ {
+ "uid": "agl-pcm-playback-switch",
+ "alsa": {
+ "name": "SRC Out Rate Switch",
+ "value": 1
+ }
+ },
+ {
+ "uid": "agl-capture-volume",
+ "alsa": {
+ "name": "DVC In Capture Volume"
+ }
+ }
+ ],
+ "halmixer": {
+ "uid": "rcar-m3",
+ "mixerapi": "smixer",
+ "prefix": "m3",
+ "ramps": [
+ {
+ "uid": "ramp-very-fast",
+ "delay": 50,
+ "up": 6,
+ "down": 10
+ },
+ {
+ "uid": "ramp-fast",
+ "delay": 50,
+ "up": 2,
+ "down": 10
+ },
+ {
+ "uid": "ramp-normal",
+ "delay": 50,
+ "up": 2,
+ "down": 4
+ },
+ {
+ "uid": "ramp-slow",
+ "delay": 50,
+ "up": 2,
+ "down": 2
+ },
+ {
+ "uid": "ramp-very-slow",
+ "delay": 100,
+ "up": 1,
+ "down": 1
+ }
+ ],
+ "playbacks" : {
+ "uid": "RCAR-M3",
+ "path": "/dev/snd/by-path/platform-sound",
+ "params": {
+ "rate": 48000,
+ "format": "S24_LE"
+ },
+ "sink": {
+ "controls": {
+ "volume": {
+ "name": "DVC Out Playback Volume",
+ "value": 80
+ },
+ "mute": {
+ "name": "SRC Out Rate Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "front-right",
+ "port": 0
+ },
+ {
+ "uid": "front-left",
+ "port": 1
+ }
+ ]
+ }
+ },
+ "zones": [
+ {
+ "uid": "full-stereo",
+ "sink": [
+ {
+ "target": "front-right",
+ "channel": 0
+ },
+ {
+ "target": "front-left",
+ "channel": 1
+ }
+ ]
+ },
+ {
+ "uid": "front-seats",
+ "sink": [
+ {
+ "target": "front-right",
+ "channel": 0
+ },
+ {
+ "target": "front-left",
+ "channel": 1
+ }
+ ]
+ }
+ ],
+ "streams": [
+ {
+ "uid": "multimedia",
+ "verb": "multimedia",
+ "zone": "full-stereo",
+ "volume": 60,
+ "mute": false,
+ "params": {
+ "rate": 48000,
+ "format": "S16_LE"
+ }
+ },
+ {
+ "uid": "navigation",
+ "verb": "navigation",
+ "zone": "front-seats",
+ "volume": 70,
+ "mute": false,
+ "params": {
+ "rate": 48000,
+ "format": "S16_LE"
+ }
+ },
+ {
+ "uid": "emergency",
+ "verb": "emergency",
+ "zone": "front-seats",
+ "volume": 60,
+ "mute": false,
+ "params": {
+ "rate": 48000,
+ "format": "S16_LE"
+ }
+ }
+ ]
+ }
+}