diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-06-13 15:36:21 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-10-08 15:53:53 +0200 |
commit | e9cf87ac429153c696678784a70ea70cfdffd27f (patch) | |
tree | 60aa1a9b59d5bad37cf018dc78b87b7d430f2cc2 /4a-hal-cfg-reference/hal-4a-rcar-m3.json | |
parent | 81d38709a3f1504f156ff0ccb416f015cefbfcfe (diff) |
Add Hal (audio json configration files)
Add some audio json configration files inspired from hal available in
'4a-hal-reference' and '4a-hal-community'.
Each one of these files are meant to be be a reproduction of old hal
using the new 4a-hal implementation.
List of hal added :
- Rcar M3
- Intel Minnowboard
- 2ch generic usb
- Intel
- Jabra solemate
- Ensoniq
Change-Id: I6bac5ed1e6d4ab72975427a9a2343851f874df79
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to '4a-hal-cfg-reference/hal-4a-rcar-m3.json')
-rw-r--r-- | 4a-hal-cfg-reference/hal-4a-rcar-m3.json | 199 |
1 files changed, 199 insertions, 0 deletions
diff --git a/4a-hal-cfg-reference/hal-4a-rcar-m3.json b/4a-hal-cfg-reference/hal-4a-rcar-m3.json new file mode 100644 index 0000000..0e5c67a --- /dev/null +++ b/4a-hal-cfg-reference/hal-4a-rcar-m3.json @@ -0,0 +1,199 @@ +{ + "$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", + "require": [ "alsacore", "smixer" ], + "info": "4a hal for Rcar M3 device", + "author": "Jonathan Aillet", + "date": "2018-06-13" + }, + "controls": [ + { + "uid": "ping", + "info": "Ping hal", + "action": "api://4a-hal-manager#ping" + } + ], + "halmap": [ + { + "uid": "agl-master-playback-volume", + "alsa": { + "name": "Digital Playback Volume1", + "value": 80 + } + }, + { + "uid": "agl-pcm-playback-volume", + "alsa": { + "name": "Digital Playback Volume1", + "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", + "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 + }, + "sink": { + "controls": { + "volume": { + "name": "Digital Playback Volume1", + "value": 80 + }, + "mute": { + "name": "SRC Out Rate Switch" + } + }, + "channels": [ + { + "uid": "front-right", + "port": 0 + }, + { + "uid": "front-left", + "port": 1 + } + ] + } + }, + "captures": { + "uid": "RCAR-M3", + "path": "/dev/snd/by-path/platform-sound", + "params": { + "rate": 48000 + }, + "source": { + "controls": { + "volume": { + "name": "DVC In Capture Volume" + }, + "mute": { + "name": "DVC In Mute 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 + } + } + ] + } +} |