summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-10-08Correct errors in hal-utilities-data prototypesJonathan Aillet2-10/+10
Functions can now returns a -int ... Change-Id: If2732bfc8fdc2566da520fcb104b9a595ac2caa6 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08hal-4a-raspberry-pi-3: add a WARNING related to RPI3 sound driver bugStephane Desneux1-1/+1
Bug-AGL: SPEC-1610 Change-Id: I331bd239e8394025367d25c3e51da4c64a16abab Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-10-08Correct 'volume' control in Minnowboard halJonathan Aillet1-1/+1
Correct 'volume' control in Minnowboard hal. Change-Id: Ib9b08aec5d4ead4258510544e7a8decf0ae3f65a Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Add Raspberry Pi 3 HALJonathan Aillet1-0/+178
Add Raspberry Pi 3 HAL into community references hal directory. Change-Id: I86291d46fc4c0455069f5c8839c117b3617c5dde Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Correct error print when attaching to mixerJonathan Aillet1-1/+1
Correct print when attach to mixer results in an call sync error. Change-Id: Id0c06d2c449d2b3dd56822674f496e0f52c31c27 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Update version of conf.d/app-templates submodule.Jonathan Aillet1-0/+0
Changes of conf.d/app-templates: (f94e45e - Romain Forlot) Align sample on actual default compile options (d0acc2a - Romain Forlot) Add support to binding version 3. (6fb3846 - Romain Forlot) Warning if not using wgtpkg-pack to make a widget (35f3af1 - Sebastien Douheret) Rework CMAKE_INSTALL_PREFIX and INSTALL_PREFIX var (332f377 - Romain Forlot) Be able to overwrite BUILD_TYPE using CLI (1ec7531 - Romain Forlot) Use CACHE variable for other common CMAKE variable (0880356 - Romain Forlot) Fix:: wrong wgt using RELEASE BUILD TYPE Change-Id: I2d4faece3aec4c882c301286f2aadf2d6bf101e5 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Update version of app-controller submodule.Jonathan Aillet1-0/+0
Changes of app-controller: (88892db - Romain Forlot) Use prefix variable to find controller's plugins Change-Id: I567fa283c1447a2ca332056a5464e55f9bf53921 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Update version of afb-helpers submodule.Jonathan Aillet1-0/+0
Changes of afb-helpers: (4f99d16 - Romain Forlot) Retrieve directory list from environment variables (f46a0dc - Jose Bollo) Remove the file .gitmodules Change-Id: I5059e2af65489ddca0c2f844f458512d6b41951c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Remove trailing white spaces in radio config fileJonathan Aillet1-32/+31
Remove trailing white spaces in radio configuration file. Normalize indentation in radio configuration json file. Change-Id: I4590fec9653ecd1fa0e8f4c7366827ad60326e3c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Added a radio to 2 channels playback .json exampleThierry Bultel1-0/+167
This files is an example on how to make the softmixer directly read from a capture device. In that particular example, the capture is the radio capture of the kingfisher board, and the playback is the ak4613 codecs. The stream rate and format must match the capture capablities. Change-Id: Id9796f73299a83822bb80878db6517cadf8001b6 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-10-08Update binding entry for app-fw v3.Jonathan Aillet1-1/+1
Update binding entry to became compatible with application framework v3 (used since AGL FF-RC1 release) Change-Id: Ib51e4a41629b73e849f56c6d0987955a373f1e59 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Set binding api version directly in top cmakeJonathan Aillet6-5/+2
Bump 'afb-helpers' and 'app-controller' submodules. Set binding api version directly in top cmake of '4a-hal-generic' repository (that became mandatory with submodules updates). Change-Id: I05de046c6435296bc1ea73eba6e12e3b34b4afad Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Update version of app-controller submodule.Jonathan Aillet1-0/+0
Changes of app-controller: (67b6d49 - Clément Bénier) ctl-lua: typo fix (bac7d6d - Clément Bénier) asynchronism for test: LockWait added (4a72073 - Romain Forlot) Fix: plugin api assignement order Change-Id: I0499febe1e253b3994460e578d8e705243582ac5 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Add hal for intel qemu audio configurationJonathan Aillet1-0/+193
Add hal for intel qemu audio configuration since QEMU '/dev/snd/...' entry is not the same for a qemu audio device than for generic intel device. Bug-AGL: SPEC-1558 Change-Id: Id258a649811c603d7973e48f8bcbd81500e9a5fa Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Simplify ping verb call print outputJonathan Aillet1-1/+1
Simplify ping verb call print output to avoid any issues in relation with app-framework binder version. Change-Id: I538498c98c458e67e8d98d455def12935c16f830 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08adjust CONTROL_CONFIG_PATH to point to .../etcJonathan Aillet1-3/+3
Same for CONTROL_PLUGIN_PATH with .../plugins and CONTROL_LUA_PATH pointing to .../lua This solves the issue when search for HAL files located in alternate folders like etc.available or somewhere else in the package dir. Change-Id: Ia35fe15f06665a58be8873e62fae0097ecd58971 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-10-08Update version of conf.d/app-templates submodule.Jonathan Aillet1-0/+0
Changes of conf.d/app-templates: (eec9f07 - Romain Forlot) Fix: SYSROOT location detection... Wrong test. Change-Id: I38ba2df5b7aa9ac0987bab5e40c3ae055d5a1b17 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Don't handle hal enablingJonathan Aillet7-2/+2
All hal that shouldn't be enable for the target will be disable using a recipe in yocto. 4a-hal-generic shouldn't take care of enabling/disabling hals. Change-Id: I38363fb7933ed73d7a4e855949ae9dd521db2862 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Update version of conf.d/app-templates submodule.Jonathan Aillet2-3/+3
Changes of conf.d/app-templates: (291aa4e - Romain Forlot) Change the default debug compilation options. (22a2cbf - Romain Forlot) Clearer coverage compilation options configuration (aa68dbd - Romain Forlot) Don't overwrite the autobuild script if it exists (a13e7b9 - Romain Forlot) Disable the in-tree build method. (51026d2 - Romain Forlot) Detect Yocto as OS distribution (1f2944e - Romain Forlot) Fix: wrong compile options added (92646f6 - Romain Forlot) Fallback using zip format if no wgtpkg-pack found (f65761c - José Bollo) 02-variables.cmake: Avoid checking CXX version if not required (3965d37 - José Bollo) config.cmake.sample: Remove dependency to libsystemd (a45ae0c - José Bollo) config.cmake.sample: Remove dependency to libmicrohttpd (9b17efe - Thierry Bultel) Added -D_FORTIFY_SOURCE=2 to CFLAGS (66f7bc8 - Thierry Bultel) start-on-target: uses RSYNC_PREFIX path for config (e400fb3 - Sebastien Douheret) Fixed spelling. Also, corrects warnings that appeared with this bump. Change-Id: Iec94bb4f49a6ce2b6cdb32154dc47ef7a31c614c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Update version of app-controller submodule.Jonathan Aillet1-0/+0
Changes of app-controller: (e45d063 - Romain Forlot) Execute ConfigExec only if section is existing (2d1c3d2 - Romain Forlot) Always set the api member even if NULL. (9622138 - Romain Forlot) Ability to add a plugin after the initial load Change-Id: Ic7ad650e6d30af71f8ed3760634e2b14c6507f1d Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Update version of afb-helpers submodule.Jonathan Aillet1-0/+0
Changes of afb-helpers: (5811a53 - Jonathan Aillet) At search, use the prefix parameter as a prefix (2c29f15 - Loïc Collignon) Remove deprecated use of cmake/Qt macro (5bec8c5 - Loïc Collignon) Rename method to avoid conflict with Qt's one (43ec971 - Sebastien Douheret) Fix warnings due to json-c evolution (9a1f7ea - jobol) wrap-json: new helper functions for comparison (c7cd527 - Sebastien Douheret) Removed anonymous function in ScanDir and fixed warnings (98c64ea - José Bollo) wrap-json: Add clone facility (5ae2a7a - Sebastien Douheret) Disabled debug code (only used for testing). Change-Id: Ifea25d4f54b28a374e3add98a516ddf09b73bfa1 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Update version of app-controller submodule.Loïc Collignon2-6/+2
Changes of app-controller: (0f3063b - Romain Forlot) Be able to dispatch required api at the wanted time (1ff524b - Romain Forlot) Change LUA package path at LUA interpreter load (738ae54 - Romain Forlot) Don't load two times a plugin even for LUA (c04f029 - Sebastien Douheret) Fixed hidden bound variable (apiHandle) (cfe3919 - Sebastien Douheret) Fixed null value when push Lua arguments (69c0585 - José Bollo) Adjust to compile with incoming bindings v3 (d7e260c - José Bollo) Remove declaration to not existing functions (8ac6625 - Romain Forlot) Add 2 lua utilities function (d3504bb - Jonathan Aillet) Update README.md for new metadata keys. Change-Id: Iee42482b7a6834977497c27fe634cee9a5f96e0c Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-10-08Correct audio configurations for Rcar boardsJonathan Aillet2-14/+24
Correct audio configurations for the following Rcar boards : - M3 - M3/Kingfisher Change-Id: Ie68be0385fb978b44dea4ce2afd4e9fdc0c8c45c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Disable community hals by defaultJonathan Aillet8-17/+23
Disable community hals by default. Also move some hals from reference configurations directory to community configurations directory. Add prefixes to all hal for mixer attach. Change-Id: Ib1f74c313dbc4596457f9535d3e593a7019b55fa Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Fix spelling in README.mdJonathan Aillet1-12/+12
Change-Id: I009b19e5448eefaa63e96e1c0984cb4ed4f4eaa0 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Improve hal list response from hal-managerJonathan Aillet2-45/+38
Improve 'loaded' verb response from hal-manager by only sending back the hal with the 'READY' status. Also add two boolean options to this verb call : - 'verbose' option to get all information of the hal. - 'all' option to get all hal and not just the 'READY' ones. Change-Id: I23d3d8ab75b429b2938249d10adbb67073eff259 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Remove boolean libraryJonathan Aillet13-18/+5
As it was almost never used in code, remove boolean library. Change-Id: I9264ffd5600a7d9526f4f4cfa8209a0cd0e5bb77 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Free json objects that should have been freedJonathan Aillet4-86/+123
Free json objects that should have been freed after use. Change-Id: Ifb3dab9672d0c039292ae05f23ade008fe82ade8 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Correct handling of incomming json messagesJonathan Aillet3-6/+13
Correct handling of incomming json messages. An error occured when a received json object was an array containing only one item. Change-Id: I2c6f27f0fd87e11c356b8d4e6bd02d472bc3d60b Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Authorize launching 4a-hal with no config fileJonathan Aillet1-3/+3
Now, even if no json audio configuration files are found at binding launch, it won't fails to initialize and will be reachable nethertheless. Change-Id: If7dd0798ef4b262eda98c5dbcc7dd6d9b1b108b5 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Correct the request return when calling a streamJonathan Aillet1-8/+8
Correct the request return when someone tries to execute an action on a stream. Now, it is successfull if the mixer says so even if no response object was returned. Change-Id: Iee965db3e826ed9040c4b2bf50eaf9090584c1bc Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Delay event parsing to be the lastJonathan Aillet1-13/+18
Delay event parsing to be the last. This is to avoid receiving events before everything is parsed. Do some minor layout changes. Change-Id: I0fd3f8d387c27471657c58ca8c4ea5828c002e23 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Optimize alsacore event handlerJonathan Aillet1-18/+14
Optimize alsacore event handler by avoiding generating a string to detect an alsacore event. Change-Id: I7498e99741b2b7095076016143ec8be6520ee122 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Update Kingfisher json configuration filesJonathan Aillet1-1/+1
Update Kingfisher json configuration files to avoid confilcts with regular m3 json configuration file. Change-Id: I8b9425065dc273fc8e66a1f4c5822c93168b183c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Authorize empty response from mixerJonathan Aillet1-4/+4
Authorize empty response from mixer because a hal could configure no streams/captures/playbacks. Change-Id: I59b703aca72e8a70e10d41b28a95c3a022797a89 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Call onload section to before halmap sectionJonathan Aillet1-3/+3
Call onload section to before halmap section. This will be usefull if we want to execute action before the first alsa calls. Change-Id: Ia1b6428d322fb94538fee7b69b4886ab419a597c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Correct typo in README.mdJonathan Aillet1-5/+5
Correct some typo in README. Change-Id: If6a2cd3a710a775dc86f33c1a9241e21814264b0 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-084a-hal-cfg-reference: add HAL definition for M3 on KingfisherStephane Desneux1-0/+199
When M3 board is plugged on Kingfisher board, the internal M3 card is not reachable with the same device name, due to changes in the DTB. The added file hal-4a-rcar-m3kf.json is thus a copy of hal-4a-rcar-m3.json where '/dev/snd/by-path/platform-sound' has been replaced by '/dev/snd/by-path/platform-sound@1' (<- '@1' at the end) Change-Id: I44c07ee83b3d884fb52a28f6ed1418765a0a0816 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-10-08Correct a failed request warning messageJonathan Aillet1-1/+1
Correct a failed request warning message. Change-Id: Iefdf1cb29af55dc1f4ea098ede032c33fb3b4138 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Update README.mdJonathan Aillet1-14/+32
Add some indications about hal selection and known issues. Change-Id: Ib09eac904029a1faf15bb8239e9188f8b39c17c1 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08config.cmake: adjust paths (CONTROL_*_PATH)Stephane Desneux1-3/+3
At runtime, the controller should search paths inside ${CMAKE_INSTALL_PREFIX}/${PROJECt_NAME}, typically: /usr/libexec/agl/4a-hal/ Change-Id: I8165a1c389dcb7e24d0e336918f0698295de1c23 Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-10-08Add Hal (audio json configration files)Jonathan Aillet7-2/+986
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>
2018-10-08Update USB json configuration filesJonathan Aillet4-11/+206
Update USB json configuration files and README. Change-Id: Ib217da9189fd928e0842bf8da85a362c1423080e Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Change verb prefix separator accroding to mixerJonathan Aillet1-1/+1
Change verb prefix separator charactor accroding to mixer. Change-Id: Ifbeb715490371ffdf835599b47076d8c17447571 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Correct typo in READMEJonathan Aillet1-3/+5
Correct some typo in README. Change-Id: I4427a2c09866bab975334b1577ff83d6b8439947 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Auithorize sending empty json to verbsJonathan Aillet2-13/+11
Auithorize sending empty json to hal-manager 'loaded 'verb and to hal 'info' verb. Change-Id: Id664b0335ad80f88392dd24cd910016deaad25e3 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Move onload section parsing lastJonathan Aillet1-1/+1
To avoid onload action to be launch before the configuration sets in other sections, parse onload section last. Change-Id: Icdc77239a9784e559bd9df130d3dc63c7ba5801b Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Revert "Move controller config exec before onload action"Jonathan Aillet1-8/+4
This reverts commit 19080e452e5ae909f64e09a4edfe9c57fbac43a4. Change-Id: I82c8f0a867a20995443f0cd600d5118ee9e3128d Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Return the result of call to mixerJonathan Aillet1-7/+20
Return the response field of mixer reponse to the caller of stream/capture/playback verbs. Force the verbose key in sent object. Change-Id: I5b87da0042c86c6b7dc8853af66cddd2f6819532 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Correct some compilation warningsJonathan Aillet4-6/+6
Correct some compilation warnings that appeared in some gcc versions. Change-Id: I846c573f3128f7d5d5da8b7d2eb1b63dc61af1ab Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>