From d8a360eeb69c52dd811ab8d8f811cdc996744059 Mon Sep 17 00:00:00 2001 From: Jonathan Aillet Date: Wed, 26 Jun 2019 17:40:30 +0200 Subject: Updates all hals to use 'haldependencies' 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 --- community-boards/hal-4a-jabra.json | 74 +++++++++++++++++++++----------------- 1 file changed, 41 insertions(+), 33 deletions(-) (limited to 'community-boards/hal-4a-jabra.json') diff --git a/community-boards/hal-4a-jabra.json b/community-boards/hal-4a-jabra.json index ab05ac9..7c1cffb 100644 --- a/community-boards/hal-4a-jabra.json +++ b/community-boards/hal-4a-jabra.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": "JABRA-USB-4A-HAL", + "version": "0.99", "api": "4a-hal-jabra-solemate", "require": [ "alsacore", "smixer" ], "info": "4a hal for Jabra Solemate", "author": "Jonathan Aillet", - "date": "2018-06-13" + "date": "2019-06-26" }, "resources": [ { @@ -34,38 +34,46 @@ "action": "api://4a-hal-manager#ping" } ], - "haldependencies" : { - "uid" : "jabra-solemate-usb", - "class" : "mandatory", - "cardPath" : "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00" - }, - "halmap": [ - { - "uid": "agl-master-playback-volume", - "alsa": { - "name": "PCM Playback Volume", - "value": 80 - } - }, + "haldependencies" : [ { - "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" : "jabra-solemate-usb", + "class" : "mandatory", + "cardPath" : "/dev/snd/by-id/usb-0d8c_USB_Sound_Device-00" + } + ], + "halmap": [ { - "uid": "agl-master-capture-volume", - "alsa": { - "name": "Mic Capture Volume" - } + "uid" : "halmap-jabra-solemate-usb", + "target" : "jabra-solemate-usb", + "controls" : [ + { + "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-master-capture-volume", + "alsa": { + "name": "Mic Capture Volume" + } + } + ] } ], "halmixer": { -- cgit 1.2.3-korg