aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2018-10-084a hal for Intel UpSquare via HDMI socketDominig ar Foll Intel Open Source1-0/+192
Change-Id: Idadc513749bea65ff8311b9ea16a9e1eb5f9e214 Signed-off-by: Dominig ar Foll Intel Open Source <dominig.arfoll@fridu.net>
2018-10-08bluetooth: set audio rate to 44100Thierry Bultel1-2/+2
44100 seems to be the most common sample rate. Fis is a temporary fix, because the actual sample rate may differ and depend on the information available at the bluetooth transport level. Handing it dynamically means some significant changes in softmixer: - instanciate the rate converter on playback in all the cases - either been able to modify it after creation, or if not possible, close and restart the output PCM plugin stack. Change-Id: I6bd900fd539251b60b97bbaf15e1390bf49c13e0 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-10-08hl-bt: Check that hal is available in initJonathan Aillet1-9/+16
In hal-bluetooth plugin, check that hal is available in plugin initialization. Move every data initialization after that everything is checked. Change-Id: I8055dd17e75099a8009f21a1070d1de293682d4b Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08hal-bt: Use plugin name definition in printsJonathan Aillet1-3/+3
Use hal-bluetooth plugin name definition in prints instead of plain text. Change-Id: Idafbead6bdc510115ac0f7ebc06cfad79ceeceed Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Move hal sections callbacks after plugin callbackJonathan Aillet1-2/+2
Into the controller section array, move hal sections callbacks after plugin callback so it will be executed before everything else. Change-Id: Id80063caae3b089e6ccef79a7b54a82b16600375 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: (625ce77 - Jonathan Aillet) Correct an error when no plugins are defined (0f708ba - Jonathan Aillet) Decrease print level when no onload action Change-Id: I61110a3a0e8a76e22ec86b1ee816f80dbcb74993 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08hal-bt: Enrich 'halmixer' section in plugin initJonathan Aillet16-903/+215
Enrich 'halmixer' section with bluetooth specific 'source' and 'stream' during hal-bt plugin initialization. Some parameters must be passed to plugin using 'params' key in controller json plugin section. This allows to get rid of must of the additional configuration when using bluetooth in a hal. Change-Id: I5820e75307a3394eca80cf783e7bc4c31c2d7659 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Remove unnecessary sections in hal jsonJonathan Aillet2-14/+0
Remove unnecessary 'onload' and 'events' sections in hal json configuration files. The specified onload actions were generating errors in some cases. Change-Id: I5eb95fe7daecf3b3d15638833142d133ce77e1ff 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: (8d53984 - Jonathan Aillet) Add a 'params' fields for controller plugins Change-Id: I6be8e2d21232c664e30879f7ee063ed4de79ca0f Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08hal-bt: Use plugin name in onload/init printsJonathan Aillet1-5/+5
hal-bt: Use plugin name in onload/initialization prints to help identify startup hal-bt plugin prints. Change-Id: Ie065a127d0321d44e800828aab1994b35aeb5739 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08hal-bt: Check presence of a bluetooth receiverJonathan Aillet2-5/+27
Disable hal-bt plugin if no bluetooth receiver is connected at plugin initialization. To be bale to check if there is no connected bluetooth receiver, use call to 'power' verb of 'Bluetooth-Manager' api. Change-Id: Idd301d2106e8b2e79e25969cc2c1a2a4e4194711 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08hal-bt: Move bluetooth api require into initJonathan Aillet1-27/+15
In hal-bt plugin, move 'Bluetooth-Manager' require into plugin 'initialization' instead of plugin 'onload'. Change-Id: I52dab7631674b4139ad74d0de0825633ea5a5b91 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Move mixer attach into its controller sectionJonathan Aillet2-17/+16
As the mixer section is obtained during a call of a controller section callback (during api pre-initilization), 'attach' call to 'mixer' has been moved in the same callback (called a second time during api initialization). Change-Id: I17f54aab1b9616649bfcb183297ba8128621a7c2 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Remove unnecessary 'function' string in printsJonathan Aillet9-116/+92
Function's names was printed using '__func__' when calling application framework prints functions. But, as the application framework prints functions already prints them, '__func__' has been removed from print calls to avoid duplicated information. Change-Id: I0dea49a9d84b7ccdbdaecec67ced6c98b5ed26d6 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: (35398f2 - Jonathan Aillet) Call wasn't done correctly in 'CtlConfigExec' Change-Id: I9e99bed2febf033244fa840a351723f1387d19fc Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Added radio stream to all the HALsThierry Bultel13-0/+152
Added the 'radio_stream' to all the HALs. This makes the radio role work in HighLevelAPI. Change-Id: I8f34224ec3dbbb1312b65642d89e672716414ac9 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-10-08kingfisher: merged the radio HAL into the main HALThierry Bultel2-168/+36
There was no point to have 2 separate HALs, the radio stream and capture is now merged into the main HAL Change-Id: I0ba974fdcfc17fc9a3964677361dd7509c7e74b3 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-10-08Add ctl actions needed by Hal-Bt in plugin initJonathan Aillet5-56/+65
Add controller events/onloads actions needed by Hal-Bt plugin in plugin initialization ('CTLP_INIT'). Therefore, these actions can be reomved from json files. Change-Id: I67391abfc7d3fd0f8b9d4fbd0fe8698497da1393 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: (bc13eef - Romain Forlot) Add ctlPlugins array to the ctlConfig structure (0176d18 - Romain Forlot) Add an Init step to the plugins load Change-Id: I27a298c010f78956025b97bbc640de19f043475f Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Add hal json with bluetooth for reference boardsJonathan Aillet3-0/+657
Add hal json configuration files with bluetooth plugin specified for reference boards. Change-Id: I16055c45b5f59aa192b5948cece1ff8a73edf5a8 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Handle error send by Bluetooth-ManagerJonathan Aillet1-9/+18
Handle error send by 'Bluetooth-Manager' when no bluetooth devices are detected by discorvery. Change-Id: Iadd2ef7dbd5aff59da62e50f99622a9aaf2627dc Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Get bluetooth device interface from path in HalBtJonathan Aillet1-6/+9
In Hal-Bt plugin, get bluetooth device 'hci' interface from 'Path' key send by 'Bluetooth-Manager'. As, the 'Path' key contains the whole path of the device, some string manipulations are necessary ... Change-Id: I320a41fb1589214b0ae6999e1c8b793c7cdd41a7 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Correct a typo in debug print of Hal-Bt pluginJonathan Aillet1-1/+1
Correct a typo in debug print of Hal-Bt plugin. Change-Id: I2fd2731853f865fcfa09dbe06d6f495ad449ff98 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Prevent segfault when receiving request in Hal-BtJonathan Aillet1-2/+2
Prevent segfault when receiving 'get_connected_bt_a2dp_devices' and 'get_selected_bt_a2dp_device' requests in Hal-Bt plugin. Change-Id: I1eb5dcab997ae77d8adc3cf28585c2449ec42a2e Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08hal-bt-data: ignore devices with no UUIDsThierry Bultel1-4/+10
just ignore devices that do not have any UUIDs Change-Id: Ic3cb25d8f8521e8f6c73afa173745a26e9c873ce Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-10-08Free afb call sync json returned object in Hal-BtJonathan Aillet2-1/+9
Free forgotten application framework call sync json returned object in Hal-Bt plugin. Change-Id: Ic9680fd735154b21839fad93b4d13a7609009866 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Improve Hal-Bt print messagesJonathan Aillet5-15/+50
Improve Hal-Bt print messages by changing the print level of messages, by adding some messages, and by add information for some existing messages. Also improve response of requests. Change-Id: Icf6dc9f4da1a2ee912dda2850464926c68f2eda6 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Improve Hal-Bt plugin A2DP bt devices detectionJonathan Aillet1-4/+6
Consider an A2DP bluetooth device as connected only if its seen as 'AVPConnected' by 'Bluetooth-Manager'. Change-Id: I54511a193ebf64e35a7605723440f3a0fae2b2fd Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08HalBt plugin keeps list of connected A2DP devicesJonathan Aillet5-66/+67
Hal-Bt plugin only keeps list of connected bluetooth A2DP devices instead of a list of all connected bluetooth devices. Change-Id: I6c06be78a927dcac32ed4683d44431514e7daf06 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Use correct file to include controllerJonathan Aillet7-7/+7
Use correct file ('ctl-config.h') instead of (''ctl-plugin.h) to include controller. Change-Id: I93a1bcb5dab51211532fc59ffd979ea7acad1530 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Improve Hal-Bt plugin event catcher behaviourJonathan Aillet1-6/+9
Improve Hal-Bt plugin event catcher behaviour by : - avoiding error generation when bluetooth device is changed. - avoiding calling 'mixer' when the selected device is changed. Change-Id: Ia7402f865551ff9df418269ac6927b66581bae9a Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Prevent Hal-Bt plugin from crashing 4AJonathan Aillet2-5/+19
Prevent Hal-Bt plugin from crashing 4A when 'Bluetooth-Manager' api is not found. Change-Id: Id8ecc3efcc36825abbb4a2bb8cf553327c45d173 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Correct an error in Hal-Bt when calling 'mixer'Jonathan Aillet1-1/+1
Correct an error in Hal-Bt plugin when calling 'mixer', response was not correctly analyzed. Change-Id: I719076c77501a9c6776559cd8acfcea033a26d1b Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08hal-4a-rcar-m3-bt.json: removed the plugin search pathThierry Bultel1-1/+0
The plugin search paths are not needed because the default (hard-coded) search paths are good. Change-Id: Ibe286219ff9af535cb104e9a7a81e0a8d6479f4a Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-10-08hal-bt! display error messages of sync callsThierry Bultel1-5/+7
Change-Id: I9daa5d665cd727cd26817645e4dd6b987e6f5b05 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-10-08Update version of conf.d/app-templates submodule.Jonathan Aillet1-0/+0
Changes of conf.d/app-templates: (76e12e7 - CorentinLGS) app-templates doc: Changed doc to fit new format. (02f45f1 - Romain Forlot) Update Docs (52ae181 - Romain Forlot) Fix: typo (f0b24b0 - Romain Forlot) Rollback about TEST build type (e841a77 - Romain Forlot) Adding a TEST build type (994ebc1 - Romain Forlot) Change default compilation options. (85d5ffd - Romain Forlot) Test widget only if there are test materials (d14bdce - Romain Forlot) Handles more test LABELS. (70cf8fd - Romain Forlot) Missing flag for COVERAGE build type (3c99b8a - Romain Forlot) Create a test widget (9c1a0fb - Romain Forlot) Fix: interpreted '&' character (9202fac - Romain Forlot) More accurate comment about widget template file. Change-Id: Ia6b8436c627e8f58922677714ef7d7e0bb0df495 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: (f0ce5b6 - José Bollo) wrap-json: Fix duplicated lines in header file (764c355 - Romain Forlot) Add '@' as binder middle name separator. (74be4cc - Jonathan Aillet) Enhance 'wrap_json_clone_depth' description (a37225f - Romain Forlot) Fix: use of GetBindingDirPath without dynapi Change-Id: I9d9512342f02d847747a41e5509cb3d74d55214e Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Implement link with softmixer in hal-bt pluginJonathan Aillet6-19/+203
In hal bluetooth plugin, implement all call to softmixer used to enable/disable bluetooth stream and to set bt streamed device. Change-Id: I16f6fbf6a02f34490876d390883bdd040661647e Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Get hal data in hal-bt pluginJonathan Aillet3-0/+17
Get hal data in hal-bt plugin. It will be used, for example, to get softmixer call information. Change-Id: I3cb2fd8d2f3f656fb4a796e13c1f62e751675861 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Test afb require result at hal-bt plugin loadJonathan Aillet1-1/+4
Test afb require on 'Bluetooth-Manager' result at hal-bt plugin load before keep going with plugin hal-bt load actions. Change-Id: I19983d12ad6634acafc6cc32d96dbae554c70245 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Add handling of hci and profile in hal-bt pluginJonathan Aillet3-11/+50
Add handling of bluetoothg hci and bluetooth profile when keep bluetooth connected devices up to date. Change-Id: I49b3e67136168bcae711eb8f7ffb2e1ccdbad3ae Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Fix little mistakes/typo in hal bluetooth pluginJonathan Aillet2-14/+12
Correct typo. Remove an unnecessary message print. Update returned error code. Change-Id: If52965b8c7158dfd17bbba411d6dc2c4aafe970a Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Force hals init before ending hal-manager initJonathan Aillet2-1/+14
Force launched hals initialization before ending hal-manager initialization. This way, external api requiring 'hal-manager' will be sure that all launched hals are initialized. Change-Id: I00b9b14da623828d7cf7bc507873ad6de8ba2391 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Decrease level of a msg printed in event catcherJonathan Aillet1-5/+5
Decrease level of a message printed in event catcher to avoid polluting debug logs. Change-Id: Id222ddc958f9550da19507537944319888bac016 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08minnow board: fixed the pcm device in json configThierry Bultel1-2/+3
Now specifies the device, in addition of the card path. Also fixes the volume control name that has changed on the board for some reason. Change-Id: Ibb217c834addcb8f51195cfec75779928ae61a91 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-10-08Use latest version of app-controller submodule.Thierry Bultel1-0/+0
Changes of app-controller: (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 Change-Id: I595f4e3db7dc1b6426875c60e5ba9b493c7651f7 Signed-off-by: Thierry Bultel <thierry.bultel@iot.bzh>
2018-10-08Add bluetooth hal pluginJonathan Aillet11-28/+965
Add first version of a hal plugin that will handle hal that wants bluetooth as an audio device. Change-Id: I4f5628ef9688c417b1b443fc3c4948cb23c17214 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Remove unnecessary 'struct' before json_objectJonathan Aillet1-2/+2
Remove unnecessary 'struct' before json_object. Change-Id: Id5106c87780ebbf1eff8bd3754d59e1184e37216 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-10-08Correct an error when unpacking alsacore responseJonathan Aillet1-1/+1
Correct an error when unpacking alsacore event subscription response. Change-Id: I39d331303d99363c36444fa642e8cb4ca16e84d8 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
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>