diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-06-26 17:40:30 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2019-06-26 17:41:45 +0200 |
commit | d8a360eeb69c52dd811ab8d8f811cdc996744059 (patch) | |
tree | 5ff3bd0f112a0ce9256de5578971ba064edf52b0 /community-boards/hal-4a-2ch-generic-usb.json | |
parent | b080c08d2ac82f7c38aace9587703b9182377c33 (diff) |
Updates all hals to use 'haldependencies'halibut_8.0.6halibut_8.0.5halibut_8.0.4halibut_8.0.3halibut_8.0.2halibut_8.0.1halibut_8.0.0halibut_7.99.3halibut_7.99.2halibut/8.0.6halibut/8.0.5halibut/8.0.4halibut/8.0.3halibut/8.0.2halibut/8.0.1halibut/8.0.0halibut/7.99.3halibut/7.99.28.0.68.0.58.0.48.0.38.0.28.0.18.0.07.99.37.99.2halibut
Updates all hals to use 'haldependencies' resolution in
'halmap' section.
That means that :
- An halmap control is created for the corresponding audio device
using 'target' key to map dependency.
- 'uid' key in 'metadata' section is no longer used to find
audio device.
BUG-AGL: SPEC-2329
Change-Id: I2e6da5a3d6ca3f51bf1e6a3f87e930396fab57a6
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'community-boards/hal-4a-2ch-generic-usb.json')
-rw-r--r-- | community-boards/hal-4a-2ch-generic-usb.json | 76 |
1 files changed, 42 insertions, 34 deletions
diff --git a/community-boards/hal-4a-2ch-generic-usb.json b/community-boards/hal-4a-2ch-generic-usb.json index d4e1c6a..298551c 100644 --- a/community-boards/hal-4a-2ch-generic-usb.json +++ b/community-boards/hal-4a-2ch-generic-usb.json @@ -1,13 +1,13 @@ { "$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", + "uid": "GENERIC-USB-4A-HAL", + "version": "0.99", "api": "4a-hal-2ch-generic-usb", "require": [ "alsacore", "smixer" ], "info": "4a hal for 2ch generic USB device", "author": "Jonathan Aillet", - "date": "2018-06-13" + "date": "2019-06-25" }, "resources": [ { @@ -34,39 +34,47 @@ "action": "api://4a-hal-manager#ping" } ], - "haldependencies" : { - "uid" : "generic-usb", - "class" : "mandatory", - "cardPath" : "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00" - }, - "halmap": [ - { - "uid": "agl-master-playback-volume", - "alsa": { - "name": "Speaker Playback Volume", - "value": 80 - } - }, + "haldependencies" : [ { - "uid": "agl-master-playback-switch", - "alsa": { - "name": "Speaker Playback Switch", - "value": 1 - } - }, - { - "uid": "agl-master-capture-volume", - "alsa": { - "name": "Mic Capture Volume", - "value": 80 - } - }, + "uid" : "generic-usb", + "class" : "mandatory", + "cardPath" : "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00" + } + ], + "halmap": [ { - "uid": "agl-mic-capture-switch", - "alsa": { - "name": "Mic Capture Switch", - "value": 1 - } + "uid" : "halmap-generic-usb", + "target" : "generic-usb", + "controls" : [ + { + "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-master-capture-volume", + "alsa": { + "name": "Mic Capture Volume", + "value": 80 + } + }, + { + "uid": "agl-mic-capture-switch", + "alsa": { + "name": "Mic Capture Switch", + "value": 1 + } + } + ] } ], "halmixer": { |