summaryrefslogtreecommitdiffstats
path: root/ahl-binding
AgeCommit message (Collapse)AuthorFilesLines
2018-12-20Fix indentation and trailing whitespacesLoïc Collignon10-747/+746
Convert every indentation to tab instead of spaces and get rid of mixed tab/spaces indentations. Also remove few trailing whitespaces. Change-Id: Ic4a8f2adcacb99789a403aefe6a16daaffee5cd6 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-20Fix issues with session and policiesLoïc Collignon2-22/+18
When a policy does a 'ramp-down' on an audio role, it never does the 'ramp-up' when closing the role that triggered the policy. Also, session handling was very buggy and had to be reworked to allow the policy to do its job. Bug: SPEC-1949 Bug: SPEC-1950 Change-Id: Iabf0e08b87862bf4620870e4b4a1214f699c7e64 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-20Added volume_changed event plus verbsLoïc Collignon3-20/+118
New subscribe and unsubscribe verbs to get the volume_changed event. Bug: SPEC-2053 Change-Id: Iedeb542c7c3d880f0d6294b0310d2662e0ac11f1 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-20Don't automatically close already closed rolesLoïc Collignon1-12/+12
On connection close, opened roles are closed as well. This prevent the auto-close to happen if the role is already closed. Bug: SPEC-1835 Change-Id: I9d8d8265927e758009108cdade26600d408b93e0 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-20Fix undefined role's state at constructLoïc Collignon1-1/+1
Role's state should be set to closed at construct. Bug: SPEC-1834 Change-Id: Icdee8f4606bccdeec3b74bea066679dd5975e8b7 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-20Removed unused dependency on 4a-softmixerLoïc Collignon1-7/+0
Softmixer was used a long time ago as a workaround of a lacking feature of HALs. It's not used anymore. Also removed an old commented dependency from the widget file. Change-Id: Icb5658934b3865cf0970aef527b1054bdf2bbb90 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-20Merge "Migration to Afb API v3"Loïc Collignon [ IoT.bzh ]6-128/+132
Change-Id: Ie81e8659554848156e0749906013b056879fa8c7 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-12-20Use latest version of controller submodule.Loïc Collignon1-6/+6
Changes of controller: (4ddd789 - Romain Forlot) memleak fixes (76e47a2 - Romain Forlot) Retrieve by default an int64 instead of int (61f072c - Romain Forlot) New function to retrieve Api's name from LUA (0249030 - Romain Forlot) Handle number and boolean to subcall an api's verb (8069ee6 - Romain Forlot) Fix: compiling a controller without LUA support (88d6ac0 - Frederic Marec) Fix Parse plugin (e849d36 - Clément Bénier) AFB:servsync: add string for query argument (303022b - Romain Forlot) Reworked pluginConfig function (0384c9a - Romain Forlot) Retrieve plugin list from api rather than a global (5865119 - Romain Forlot) Add setter/getter for user free defined pointer (c76dc6c - Romain Forlot) Pass the plugin to action. (a492cbf - Romain Forlot) Abort if one required API is missing (8e49f8d - Jonathan Aillet) Correct an error when no plugins are defined (73eec54 - Jonathan Aillet) Decrease print level when no onload action (ff20c39 - Jonathan Aillet) Add a 'params' fields for controller plugins (6abf6ad - Jonathan Aillet) Call wasn't done correctly in 'CtlConfigExec' (e37c3a8 - Romain Forlot) Add an Init step to the plugins load (dcf433f - Romain Forlot) Add ctlPlugins array to the ctlConfig structure (1d6110f - Jan-Simon Möller) Add gitreview file for flounder branch (d6eb01e - Romain Forlot) Change loading configuration object behavior (c3a70d7 - CorentinLGS) app-controller-submodule doc: Changed doc to fit new format. (82820f4 - Romain Forlot) Fix: compatibility with binder FF.RC4 (02bbf59 - Romain Forlot) Fix: Wrong variable definition (bdf1a6b - Thierry Bultel) ctl-lua: Fixed memory corruption (4386ec5 - Romain Forlot) Migration to v3 (789a8ae - Romain Forlot) Adds v3 function to get binding settings (3891dcc - Romain Forlot) New function returning the binding root directory (e7132f1 - Romain Forlot) Change the default GLOB pattern (36ed31c - Romain Forlot) Fix wrong computed length (29307ea - Romain Forlot) Add path to the installed widget path. (191292f - CorentinLGS) Controller: Converted README to a gitbook version. (4e30eb1 - Romain Forlot) New defaults useful functions on lua table (61cbc9a - Romain Forlot) More precise log message when loading a Lua file (535df7f - Romain Forlot) Fix: wrong legacy function signature (b79a761 - Romain Forlot) Split loading JSON controller file. (c3d7de2 - Romain Forlot) Release arguments once C function returned. (a58d83b - Romain Forlot) Fix : typo introduced in a previous commit. (86f65bd - 8000ff) Fixed character counting that was shortening paths (e32d98c - Jonathan Aillet) Keep json unmodified during action execution (88892db - Romain Forlot) Use prefix variable to find controller's plugins Change-Id: I4de78e4e3d82a2d6209455d5ff539e74931b812b Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-11-19Fix issues with session and policiesLoïc Collignon3-71/+171
When a policy does a 'ramp-down' on an audio role, it never does the 'ramp-up' when closing the role that triggered the policy. Also, session handling was very buggy and had to be reworked to allow the policy to do it's job. Bug: SPEC-1949 Bug: SPEC-1950 Change-Id: I668044201c9addbc185ea953c6e3239abfda91c5 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-08-31Do not list audio roles not bound to a deviceLoïc Collignon1-1/+13
Most of the time if you request an audio role, it's to use it. But you can't use an audio role not bound to a device. Listing not bound audio roles can also lead to confusion. If you want to list all audio roles anyway, you can now pass a verbose parameter. Bug: SPEC-1690, SPEC-1646 Change-Id: Ie216cb58317393c0e7136919bb9c91c259881acd Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-08-31Lower verbosityLoïc Collignon2-13/+13
Reduced the verbosity by using more approriate log level. All message can still be seen by increasing the verbosity of the service. Bug: SPEC-1688 Change-Id: I584ef1a594536eb91b9c4d74885192763a85bdcf Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-07-11Added role for radio, and mute/unmute actionsflounder_5.99.4flounder_5.99.3flounder_5.99.2flounder/5.99.4flounder/5.99.3flounder/5.99.25.99.45.99.35.99.2Thierry Bultel2-4/+68
This defines a new 'radio' role that uses the radio_stream Also implements the new mute/unmute actions, that are forwarded to the softmixer. Now registers to a client (multimedia player, radio service ...) disconnection, to properly free the leased role. Change-Id: Ic15fb63cd90ba28f3978c67d917a77ed6b030e08 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-07-10Fixed compilation warnings with latest jsoncThierry Bultel4-19/+43
Change-Id: I87a8c0ba3fdccf6bddd6f4fb7982225c1399f130 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-07-10No longer sets the API version in codeThierry Bultel2-3/+1
This is done in config.cmake Change-Id: Icf36d61a5127689e55e11125cbe60b72b939bb1a Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh> Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-06-29Fix build for migration to the binder from masterLoïc Collignon5-13/+38
Some definitions changed between eel and master versions of the app-framework-binder. Change-Id: I92d6f4af3193a693580d421adbd4331fcb249392 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-06-29ahl-binding: enable AFB_BINDING_WANT_DYNAPI symbol to be compatible with ↵Stephane Desneux1-5/+6
legacy dynapi calls Change-Id: I130408705f8052fec0bd6a6a49740922630ecb0c Signed-off-by: Stephane Desneux <stephane.desneux@iot.bzh>
2018-06-14Fix a bug that duplicate the roles arrayeel_5.1.0eel/5.1.05.1.0eelLoïc Collignon1-0/+2
Controller call the config twice due to multiple initialisation phase, the code should handle this behaviour to not doing things twice. Also removed an unused section from the config file. Change-Id: Iecf09fe494173b757c3557d838782c50153dbfb4 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-06-14Add special permission to the mixerLoïc Collignon1-9/+16
Mixer will make use of the high level api to control volume, but it has to have special permission to be allowed to control volume without opening the stream. Change-Id: Iabf76e3df329de3706f24ef21b6df35b5f5aab60 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-06-12Update to last softmixer and hal, plus some fixesLoïc Collignon7-403/+404
Use the last 4a-softmixer and 4a-hal-generic versions. Fix some potential crash and performance bottleneck. Now support sessions to disallow multiple opening or closing by not owner. Change-Id: I95b020a3fab03b1e1058812adae1d8d5986f282b Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-06-12Add some policy emulationLoïc Collignon8-75/+275
Add a very simplistic policy emulation just for demo. The real policy engine will be brought back soon. Change-Id: I6f77c8dc58ba335eabd1a1d858354a84559d9e7f Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-06-12Rewrite of the High Level API using the new HAL modelLoïc Collignon18-2998/+898
The new HAL model need the High Level API to be rewritten. This is the first version of this rewrite, still in progress but should work. Change-Id: I5c94cf39d84cefae6b7a179c09d95e645673e8d4 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
2018-01-03Merge "Several improvement on AHL error messages " into eeleel_5.0.3eel_5.0.2eel_5.0.1eel_5.0.0eel/5.0.3eel/5.0.2eel/5.0.1eel/5.0.05.0.35.0.25.0.15.0.0Jan-Simon Moeller3-60/+71
2018-01-03Several improvement on AHL error messages Tai Vuong3-60/+71
This required a lot of changes in the code, please review carefully and decide if you want to include now or after CES Bug-AGL: SPEC-1207 Change-Id: If1aacecdd2aa9afd3ce4314c3b6334f9334faff4 Signed-off-by: Tai Vuong <tvuong@audiokinetic.com>
2018-01-03Improve error messages for unable to find endpointTai Vuong1-1/+1
Added proper error messages Bug-AGL: SPEC-1207 Change-Id: I5d898f9ef3968021503e531f1b0e189cc878234e Signed-off-by: Tai Vuong <tvuong@audiokinetic.com>
2017-12-20SPEC-1207 alh-4a error message add streamID information to unsubscribe error.eel_4.99.5eel/4.99.54.99.5Tai Vuong1-1/+1
Change-Id: Ib23b4d1c1d234678f3f0d1ad7628c4448985e8db Signed-off-by: Tai Vuong <tvuong@audiokinetic.com>
2017-11-10Fix typoRonan Le Martret1-1/+1
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-11-07API change, set mute is now an integer instead of string, fix memory leak, ↵Tai Vuong3-55/+69
remove property value not implemented
2017-11-07Fix memory leak, ducking bug on policy, close streamTai Vuong4-43/+34
2017-11-05Added few protection again invalid configFulup Ar Foll4-116/+118
2017-11-03various bug fix, add alsa configuration file to match with Hal controlTai Vuong3-6/+26
2017-11-03fix typo, breaking buildTai Vuong1-1/+1
2017-11-02merge dev branch with masterTai Vuong9-0/+3001
2017-11-01Integration with AlsaHookPlugin (work in progress)Fulup Ar Foll1-8/+51
2017-10-30Code Reorganisation preparing transfer to gerritFulup Ar Foll7-0/+3099