summaryrefslogtreecommitdiffstats
path: root/community-boards
diff options
context:
space:
mode:
Diffstat (limited to 'community-boards')
-rw-r--r--community-boards/hal-4a-2ch-generic-usb.json222
-rw-r--r--community-boards/hal-4a-csl-cm106-8ch-usb.json290
-rw-r--r--community-boards/hal-4a-ensoniq.json222
-rw-r--r--community-boards/hal-4a-intel-upsquared-hdmi.json185
-rw-r--r--community-boards/hal-4a-intel.json221
-rw-r--r--community-boards/hal-4a-jabra.json221
-rw-r--r--community-boards/hal-4a-raspberry-pi-3.json198
7 files changed, 1559 insertions, 0 deletions
diff --git a/community-boards/hal-4a-2ch-generic-usb.json b/community-boards/hal-4a-2ch-generic-usb.json
new file mode 100644
index 0000000..efc59e3
--- /dev/null
+++ b/community-boards/hal-4a-2ch-generic-usb.json
@@ -0,0 +1,222 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "version": "0.9",
+ "api": "4a-hal-2ch-generic-usb",
+ "require": [ "alsacore", "smixer" ],
+ "info": "4a hal for 2ch generic USB device",
+ "author": "Jonathan Aillet",
+ "date": "2018-06-13"
+ },
+ "resources": [
+ {
+ "uid": "hal-bt",
+ "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration",
+ "params": {
+ "channels": 2,
+ "zone": "front-seats"
+ },
+ "libs": ["hal-bt.ctlso"]
+ }
+ ],
+ "controls": [
+ {
+ "uid": "ping",
+ "info": "Ping hal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "halmap": [
+ {
+ "uid": "agl-master-playback-volume",
+ "alsa": {
+ "name": "Speaker Playback Volume",
+ "value": 80
+ }
+ },
+ {
+ "uid": "agl-master-playback-switch",
+ "alsa": {
+ "name": "Speaker Playback Switch",
+ "value": 1
+ }
+ },
+ {
+ "uid": "agl-mic-capture-volume",
+ "alsa": {
+ "name": "Mic Capture Volume",
+ "value": 80
+ }
+ },
+ {
+ "uid": "agl-mic-capture-switch",
+ "alsa": {
+ "name": "Mic Capture Switch",
+ "value": 1
+ }
+ }
+ ],
+ "halmixer": {
+ "uid": "2ch-generic-usb",
+ "mixerapi": "smixer",
+ "prefix": "2ch-usb",
+ "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": "2CH-GENERIC-USB",
+ "path": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "params": {
+ "rate": 48000
+ },
+ "sink": {
+ "controls": {
+ "volume": {
+ "name": "Speaker Playback Volume",
+ "value": 80
+ },
+ "mute": {
+ "name": "Speaker Playback Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "front-right",
+ "port": 0
+ },
+ {
+ "uid": "front-left",
+ "port": 1
+ }
+ ]
+ }
+ },
+ "captures": {
+ "uid": "2CH-GENERIC-USB",
+ "path": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "params": {
+ "rate": 48000
+ },
+ "source": {
+ "controls": {
+ "volume": {
+ "name": "Capture Volume"
+ },
+ "mute": {
+ "name": "Capture Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "mic-right",
+ "port": 0
+ },
+ {
+ "uid": "mic-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
+ }
+ },
+ {
+ "uid": "navigation",
+ "verb": "navigation",
+ "zone": "front-seats",
+ "volume": 70,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "emergency",
+ "verb": "emergency",
+ "zone": "front-seats",
+ "volume": 60,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "radio_stream",
+ "verb": "radio_stream",
+ "zone": "full-stereo",
+ "volume": 70,
+ "mute": true,
+ "params": {
+ "rate" : 48000
+ }
+ }
+ ]
+ }
+}
diff --git a/community-boards/hal-4a-csl-cm106-8ch-usb.json b/community-boards/hal-4a-csl-cm106-8ch-usb.json
new file mode 100644
index 0000000..09bfcfa
--- /dev/null
+++ b/community-boards/hal-4a-csl-cm106-8ch-usb.json
@@ -0,0 +1,290 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "version": "0.9",
+ "api": "4a-hal-csl-cm106-8ch-usb",
+ "require": [ "alsacore", "smixer" ],
+ "info": "4a hal for CSL CM106 8ch USB device",
+ "author": "Jonathan Aillet",
+ "date": "2018-06-09"
+ },
+ "resources": [
+ {
+ "uid": "hal-bt",
+ "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration",
+ "params": {
+ "channels": 2,
+ "zone": "front-seats"
+ },
+ "libs": ["hal-bt.ctlso"]
+ }
+ ],
+ "controls": [
+ {
+ "uid": "ping",
+ "info": "Ping hal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "halmap": [
+ {
+ "uid": "agl-mic-capture-volume",
+ "alsa": {
+ "name": "Mic Capture Volume",
+ "value": 60
+ }
+ },
+ {
+ "uid": "agl-speaker-playback-volume",
+ "alsa": {
+ "numid": 8,
+ "value": 80
+ }
+ },
+ {
+ "uid": "hal-ping",
+ "info": "ping this hal through alsa",
+ "alsa": {
+ "name": "Hal-Ping",
+ "value": 20,
+ "create":
+ {
+ "type": "INTEGER",
+ "count": 1,
+ "minval": 0,
+ "maxval": 100,
+ "step": 1
+ }
+ },
+ "action": "api://4a-hal-csl-cm106-8ch-usb#ping"
+ }
+ ],
+ "halmixer": {
+ "uid": "csl-cm106-8ch-usb",
+ "mixerapi": "smixer",
+ "prefix": "cm106-usb",
+ "ramps": [
+ {
+ "uid": "ramp-fast",
+ "delay": 50,
+ "up": 10,
+ "down": 3
+ },
+ {
+ "uid": "ramp-slow",
+ "delay": 250,
+ "up": 3,
+ "down": 1
+ },
+ {
+ "uid": "ramp-normal",
+ "delay": 100,
+ "up": 6,
+ "down": 2
+ }
+ ],
+ "playbacks" : {
+ "uid": "CSL-CM106-8CH-USB",
+ "path": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "params": {
+ "rate": 48000
+ },
+ "sink": {
+ "controls": {
+ "volume": {
+ "name": "Speaker Playback Volume",
+ "value": 80
+ },
+ "mute": {
+ "name": "Speaker Playback Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "front-right",
+ "port": 0
+ },
+ {
+ "uid": "front-left",
+ "port": 1
+ },
+ {
+ "uid": "middle-right",
+ "port": 2
+ },
+ {
+ "uid": "middle-left",
+ "port": 3
+ },
+ {
+ "uid": "back-right",
+ "port": 4
+ },
+ {
+ "uid": "back-left",
+ "port": 5
+ },
+ {
+ "uid": "center-right",
+ "port": 6
+ },
+ {
+ "uid": "center-left",
+ "port": 7
+ }
+ ]
+ }
+ },
+ "captures": {
+ "uid": "CSL-CM106-8CH-USB",
+ "path": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "params": {
+ "rate": 48000
+ },
+ "source": {
+ "controls": {
+ "volume": {
+ "name": "Capture Volume"
+ },
+ "mute": {
+ "name": "Capture Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "mic-right",
+ "port": 0
+ },
+ {
+ "uid": "mic-left",
+ "port": 1
+ }
+ ]
+ }
+ },
+ "zones": [
+ {
+ "uid": "full-stereo",
+ "sink": [
+ {
+ "target": "front-right",
+ "channel": 0
+ },
+ {
+ "target": "front-left",
+ "channel": 1
+ },
+ {
+ "target": "middle-right",
+ "channel": 0
+ },
+ {
+ "target": "middle-left",
+ "channel": 1
+ },
+ {
+ "target": "back-right",
+ "channel": 0
+ },
+ {
+ "target": "back-left",
+ "channel": 1
+ }
+ ]
+ },
+ {
+ "uid": "front-seats",
+ "sink": [
+ {
+ "target": "front-right",
+ "channel": 0
+ },
+ {
+ "target": "front-left",
+ "channel": 1
+ }
+ ]
+ },
+ {
+ "uid": "middle-seats",
+ "sink": [
+ {
+ "target": "middle-right",
+ "channel": 0
+ },
+ {
+ "target": "middle-left",
+ "channel": 1
+ }
+ ]
+ },
+ {
+ "uid": "back-seats",
+ "sink": [
+ {
+ "target": "back-right",
+ "channel": 0
+ },
+ {
+ "target": "back-left",
+ "channel": 1
+ }
+ ]
+ }
+ ],
+ "streams": [
+ {
+ "uid": "multimedia",
+ "verb": "multimedia",
+ "zone": "full-stereo",
+ "volume": 60,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "navigation",
+ "verb": "navigation",
+ "zone": "front-seats",
+ "volume": 70,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "emergency",
+ "verb": "emergency",
+ "zone": "front-seats",
+ "volume": 60,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "legacy",
+ "verb": "legacy",
+ "zone": "back-seats",
+ "source": "loop-legacy",
+ "volume": 50,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "radio_stream",
+ "verb": "radio_stream",
+ "zone": "full-stereo",
+ "volume": 70,
+ "mute": true,
+ "params": {
+ "rate" : 48000
+ }
+ }
+ ]
+ }
+}
diff --git a/community-boards/hal-4a-ensoniq.json b/community-boards/hal-4a-ensoniq.json
new file mode 100644
index 0000000..7d1dc80
--- /dev/null
+++ b/community-boards/hal-4a-ensoniq.json
@@ -0,0 +1,222 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "version": "0.9",
+ "api": "4a-hal-ensoniq",
+ "require": [ "alsacore", "smixer" ],
+ "info": "4a hal for Ensoniq",
+ "author": "Jonathan Aillet",
+ "date": "2018-06-13"
+ },
+ "resources": [
+ {
+ "uid": "hal-bt",
+ "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration",
+ "params": {
+ "channels": 2,
+ "zone": "front-seats"
+ },
+ "libs": ["hal-bt.ctlso"]
+ }
+ ],
+ "controls": [
+ {
+ "uid": "ping",
+ "info": "Ping hal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "halmap": [
+ {
+ "uid": "agl-master-playback-volume",
+ "alsa": {
+ "name": "Master Playback Volume",
+ "value": 100
+ }
+ },
+ {
+ "uid": "agl-pcm-playback-volume",
+ "alsa": {
+ "name": "PCM Playback Volume",
+ "value": 100
+ }
+ },
+ {
+ "uid": "agl-master-playback-switch",
+ "alsa": {
+ "name": "Master Playback Switch",
+ "value": 1
+ }
+ },
+ {
+ "uid": "agl-mic-capture-volume",
+ "alsa": {
+ "name": "Capture Volume"
+ }
+ }
+ ],
+ "halmixer": {
+ "uid": "ensoniq",
+ "mixerapi": "smixer",
+ "prefix": "ensoniq",
+ "ramps": [
+ {
+ "uid": "ramp-very-fast",
+ "delay": 50,
+ "up": 6,
+ "down": 4
+ },
+ {
+ "uid": "ramp-fast",
+ "delay": 50,
+ "up": 2,
+ "down": 4
+ },
+ {
+ "uid": "ramp-normal",
+ "delay": 100,
+ "up": 6,
+ "down": 10
+ },
+ {
+ "uid": "ramp-slow",
+ "delay": 100,
+ "up": 4,
+ "down": 2
+ },
+ {
+ "uid": "ramp-very-slow",
+ "delay": 100,
+ "up": 1,
+ "down": 1
+ }
+ ],
+ "playbacks" : {
+ "uid": "ENSONIQ",
+ "path": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "params": {
+ "rate": 48000
+ },
+ "sink": {
+ "controls": {
+ "volume": {
+ "name": "Speaker Playback Volume",
+ "value": 80
+ },
+ "mute": {
+ "name": "Speaker Playback Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "front-right",
+ "port": 0
+ },
+ {
+ "uid": "front-left",
+ "port": 1
+ }
+ ]
+ }
+ },
+ "captures": {
+ "uid": "ENSONIQ",
+ "path": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "params": {
+ "rate": 48000
+ },
+ "source": {
+ "controls": {
+ "volume": {
+ "name": "Capture Volume"
+ },
+ "mute": {
+ "name": "Capture Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "mic-right",
+ "port": 0
+ },
+ {
+ "uid": "mic-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
+ }
+ },
+ {
+ "uid": "navigation",
+ "verb": "navigation",
+ "zone": "front-seats",
+ "volume": 70,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "emergency",
+ "verb": "emergency",
+ "zone": "front-seats",
+ "volume": 60,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "radio_stream",
+ "verb": "radio_stream",
+ "zone": "full-stereo",
+ "volume": 70,
+ "mute": true,
+ "params": {
+ "rate" : 48000
+ }
+ }
+
+ ]
+ }
+}
diff --git a/community-boards/hal-4a-intel-upsquared-hdmi.json b/community-boards/hal-4a-intel-upsquared-hdmi.json
new file mode 100644
index 0000000..8597489
--- /dev/null
+++ b/community-boards/hal-4a-intel-upsquared-hdmi.json
@@ -0,0 +1,185 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "/dev/snd/by-path/pci-0000:00:0e.0",
+ "version": "0.9",
+ "api": "4a-hal-intel-upsquared-hdmi",
+ "require": [ "alsacore", "smixer" ],
+ "info": "4a hal for Intel UpSquared device via HDMI socket",
+ "author": "Dominig ar Foll (Intel OTC)",
+ "date": "2018-10-01"
+ },
+ "resources": [
+ {
+ "uid": "hal-bt",
+ "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration",
+ "params": {
+ "channels": 2,
+ "zone": "front-seats"
+ },
+ "libs": ["hal-bt.ctlso"]
+ }
+ ],
+ "controls": [
+ {
+ "uid": "ping",
+ "info": "Ping hal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "halmap": [
+ {
+ "uid": "agl-pcm-playback-switch",
+ "alsa": {
+ "numid": 11,
+ "value": 1
+ }
+ }
+ ],
+ "halmixer": {
+ "uid": "intel-upsquared-hdmi",
+ "mixerapi": "smixer",
+ "prefix": "intel-upsquared-hdmi",
+ "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": "INTEL-UPSQUARED-HDMI",
+ "cardid": "hw:PCH",
+ "device": 7,
+ "params": {
+ "rate": 48000
+ },
+ "sink": {
+ "channels": [
+ {
+ "uid": "front-right",
+ "port": 0
+ },
+ {
+ "uid": "front-left",
+ "port": 1
+ }
+ ]
+ }
+ },
+ "captures": {
+ "uid": "INTEL-UPSQUARED-HDMI",
+ "path": "/dev/snd/by-path/pci-0000:00:0e.0",
+ "params": {
+ "rate": 48000
+ },
+ "source": {
+ "channels": [
+ {
+ "uid": "mic-right",
+ "port": 0
+ },
+ {
+ "uid": "mic-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
+ }
+ },
+ {
+ "uid": "navigation",
+ "verb": "navigation",
+ "zone": "front-seats",
+ "volume": 70,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "emergency",
+ "verb": "emergency",
+ "zone": "front-seats",
+ "volume": 60,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "radio_stream",
+ "verb": "radio_stream",
+ "zone": "full-stereo",
+ "volume": 70,
+ "mute": true,
+ "params": {
+ "rate" : 48000
+ }
+ }
+ ]
+ }
+}
diff --git a/community-boards/hal-4a-intel.json b/community-boards/hal-4a-intel.json
new file mode 100644
index 0000000..1e27896
--- /dev/null
+++ b/community-boards/hal-4a-intel.json
@@ -0,0 +1,221 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "/dev/snd/by-path/pci-0000:00:1b.0",
+ "version": "0.9",
+ "api": "4a-hal-intel",
+ "require": [ "alsacore", "smixer" ],
+ "info": "4a hal for Intel device",
+ "author": "Jonathan Aillet",
+ "date": "2018-06-13"
+ },
+ "resources": [
+ {
+ "uid": "hal-bt",
+ "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration",
+ "params": {
+ "channels": 2,
+ "zone": "front-seats"
+ },
+ "libs": ["hal-bt.ctlso"]
+ }
+ ],
+ "controls": [
+ {
+ "uid": "ping",
+ "info": "Ping hal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "halmap": [
+ {
+ "uid": "agl-master-playback-volume",
+ "alsa": {
+ "name": "Master Playback Volume",
+ "value": 100
+ }
+ },
+ {
+ "uid": "agl-pcm-playback-volume",
+ "alsa": {
+ "name": "PCM Playback Volume",
+ "value": 100
+ }
+ },
+ {
+ "uid": "agl-master-playback-switch",
+ "alsa": {
+ "name": "Master Playback Switch",
+ "value": 1
+ }
+ },
+ {
+ "uid": "agl-capture-volume",
+ "alsa": {
+ "name": "Capture Volume"
+ }
+ }
+ ],
+ "halmixer": {
+ "uid": "intel",
+ "mixerapi": "smixer",
+ "prefix": "intel-generic",
+ "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": "INTEL",
+ "path": "/dev/snd/by-path/pci-0000:00:1b.0",
+ "params": {
+ "rate": 48000
+ },
+ "sink": {
+ "controls": {
+ "volume": {
+ "name": "Master Playback Volume",
+ "value": 80
+ },
+ "mute": {
+ "name": "Master Playback Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "front-right",
+ "port": 0
+ },
+ {
+ "uid": "front-left",
+ "port": 1
+ }
+ ]
+ }
+ },
+ "captures": {
+ "uid": "INTEL",
+ "path": "/dev/snd/by-path/pci-0000:00:1b.0",
+ "params": {
+ "rate": 48000
+ },
+ "source": {
+ "controls": {
+ "volume": {
+ "name": "Capture Volume"
+ },
+ "mute": {
+ "name": "Capture Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "mic-right",
+ "port": 0
+ },
+ {
+ "uid": "mic-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
+ }
+ },
+ {
+ "uid": "navigation",
+ "verb": "navigation",
+ "zone": "front-seats",
+ "volume": 70,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "emergency",
+ "verb": "emergency",
+ "zone": "front-seats",
+ "volume": 60,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "radio_stream",
+ "verb": "radio_stream",
+ "zone": "full-stereo",
+ "volume": 70,
+ "mute": true,
+ "params": {
+ "rate" : 48000
+ }
+ }
+ ]
+ }
+}
diff --git a/community-boards/hal-4a-jabra.json b/community-boards/hal-4a-jabra.json
new file mode 100644
index 0000000..d9879d4
--- /dev/null
+++ b/community-boards/hal-4a-jabra.json
@@ -0,0 +1,221 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "version": "0.9",
+ "api": "4a-hal-jabra-solemate",
+ "require": [ "alsacore", "smixer" ],
+ "info": "4a hal for Jabra Solemate",
+ "author": "Jonathan Aillet",
+ "date": "2018-06-13"
+ },
+ "resources": [
+ {
+ "uid": "hal-bt",
+ "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration",
+ "params": {
+ "channels": 2,
+ "zone": "front-seats"
+ },
+ "libs": ["hal-bt.ctlso"]
+ }
+ ],
+ "controls": [
+ {
+ "uid": "ping",
+ "info": "Ping hal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "halmap": [
+ {
+ "uid": "agl-master-playback-volume",
+ "alsa": {
+ "name": "PCM Playback Volume",
+ "value": 80
+ }
+ },
+ {
+ "uid": "agl-pcm-playback-volume",
+ "alsa": {
+ "name": "PCM Playback Volume",
+ "value": 80
+ }
+ },
+ {
+ "uid": "agl-pcm-playback-switch",
+ "alsa": {
+ "name": "PCM Playback Switch",
+ "value": 1
+ }
+ },
+ {
+ "uid": "agl-mic-capture-volume",
+ "alsa": {
+ "name": "Mic Capture Volume"
+ }
+ }
+ ],
+ "halmixer": {
+ "uid": "jabra-solemate",
+ "mixerapi": "smixer",
+ "prefix": "jabra-solemate",
+ "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": "JABRA-SOLEMATE",
+ "path": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "params": {
+ "rate": 48000
+ },
+ "sink": {
+ "controls": {
+ "volume": {
+ "name": "Speaker Playback Volume",
+ "value": 80
+ },
+ "mute": {
+ "name": "Speaker Playback Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "front-right",
+ "port": 0
+ },
+ {
+ "uid": "front-left",
+ "port": 1
+ }
+ ]
+ }
+ },
+ "captures": {
+ "uid": "JABRA-SOLEMATE",
+ "path": "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00",
+ "params": {
+ "rate": 48000
+ },
+ "source": {
+ "controls": {
+ "volume": {
+ "name": "Capture Volume"
+ },
+ "mute": {
+ "name": "Capture Switch"
+ }
+ },
+ "channels": [
+ {
+ "uid": "mic-right",
+ "port": 0
+ },
+ {
+ "uid": "mic-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
+ }
+ },
+ {
+ "uid": "navigation",
+ "verb": "navigation",
+ "zone": "front-seats",
+ "volume": 70,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "emergency",
+ "verb": "emergency",
+ "zone": "front-seats",
+ "volume": 60,
+ "mute": false,
+ "params": {
+ "rate": 48000
+ }
+ },
+ {
+ "uid": "radio_stream",
+ "verb": "radio_stream",
+ "zone": "full-stereo",
+ "volume": 70,
+ "mute": true,
+ "params": {
+ "rate" : 48000
+ }
+ }
+ ]
+ }
+}
diff --git a/community-boards/hal-4a-raspberry-pi-3.json b/community-boards/hal-4a-raspberry-pi-3.json
new file mode 100644
index 0000000..86be677
--- /dev/null
+++ b/community-boards/hal-4a-raspberry-pi-3.json
@@ -0,0 +1,198 @@
+{
+ "$schema": "http://iot.bzh/download/public/schema/json/ctl-schema.json",
+ "metadata": {
+ "uid": "/dev/snd/by-path/platform-soc:audio",
+ "version": "0.9",
+ "api": "4a-hal-raspberry-pi-3",
+ "require": [ "alsacore", "smixer" ],
+ "info": "4a hal for Raspberry Pi 3 device\nWARNING: in AGL FF.rc2, RPI3 suffers from a bug in the native sound card driver that prevents DMix component to work correctly. As a consequence, no sound can be heard on the internal sound card of the PI3. See https://jira.automotivelinux.org/browse/SPEC-1610 . [Signed-Off: sdx@iot.bzh - 20180724]",
+ "author": "Jonathan Aillet",
+ "date": "2018-07-20"
+ },
+ "resources": [
+ {
+ "uid": "hal-bt",
+ "info": "Bluetooth hal plugin to get A2DP bluetooth device as an input by tweaking softmixer configuration",
+ "params": {
+ "channels": 2,
+ "zone": "front-seats"
+ },
+ "libs": ["hal-bt.ctlso"]
+ }
+ ],
+ "controls": [
+ {
+ "uid": "ping",
+ "info": "Ping hal",
+ "action": "api://4a-hal-manager#ping"
+ }
+ ],
+ "halmap": [
+ {
+ "uid": "agl-master-playback-volume",
+ "alsa": {
+ "name": "PCM Playback Volume",
+ "value": 100
+ }
+ },
+ {
+ "uid": "agl-pcm-playback-volume",
+ "alsa": {
+ "name": "PCM Playback Volume",
+ "value": 100
+ }
+ },
+ {
+ "uid": "agl-master-playback-switch",
+ "alsa": {
+ "name": "PCM Playback Switch",
+ "value": 1
+ }
+ },
+ {
+ "uid": "agl-pcm-playback-switch",
+ "alsa": {
+ "name": "PCM Playback Switch",
+ "value": 1
+ }
+ }
+ ],
+ "halmixer": {
+ "uid": "rpi3",
+ "mixerapi": "smixer",
+ "prefix": "rpi3",
+ "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": "RASPBERRY-PI-3",
+ "path": "/dev/snd/by-path/platform-soc:audio",
+ "params": {
+ "rate": 48000
+ },
+ "sink": {
+ "controls": {
+ "volume": {
+ "name": "PCM Playback Volume",
+ "value": 100
+ },
+ "mute": {
+ "name": "PCM Playback 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": 80,
+ "mute": false,
+ "params": {
+ "rate": 48000,
+ "format": "S16_LE"
+ }
+ },
+ {
+ "uid": "radio_stream",
+ "verb": "radio_stream",
+ "zone": "full-stereo",
+ "volume": 70,
+ "mute": true,
+ "params": {
+ "rate" : 48000
+ }
+ }
+ ]
+ }
+}