aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2020-01-29Add gitreview file for icefish branchicefish_9.0.1icefish_9.0.0icefish/9.0.1icefish/9.0.09.0.19.0.0icefishJan-Simon Möller1-1/+1
Change-Id: Idd10b8ffd8b4d669dd37d31fa678778fac731a46 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
2019-12-03Remove forgotten pieces of codeHEADicefish_8.99.5icefish_8.99.4icefish_8.99.3icefish/8.99.5icefish/8.99.4icefish/8.99.38.99.58.99.48.99.3masterJonathan Aillet1-2/+0
Remove some forgotten pieces of code about cleaning binding data at binder exit. BUG-AGL: SPEC-2910 Change-Id: Iffb8898b8df97236910642251f7f009cdfb8cf50 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Add function that prepare closing binder on exiticefish_8.99.2icefish_8.99.1icefish/8.99.2icefish/8.99.18.99.28.99.1Jonathan Aillet3-1/+40
Add function that prepare closing binder when exit signal is received. That includes reverting hal api performed actions (e.g. removing added custom ALSA control, ...) and deleting all hal api. Register this function to be call at binder exit (using 'on_exit'). BUG-AGL: SPEC-2910 Change-Id: I49a5b65c303561bede4c93a2eb3284395fa9f1e7 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Merge changes Stéphane Desneux0-0/+0
2019-10-17Merge "Add a function to delete all hal api"Stéphane Desneux2-0/+40
2019-10-17Merge "Unmanage all halmap before deleting hal api"Stéphane Desneux1-2/+13
2019-10-17Merge "Add functions to unmanage handled halmap"Stéphane Desneux2-28/+142
2019-10-17Merge "Add function to delete an ALSA control"Stéphane Desneux2-0/+88
2019-10-17Merge "Unsubscribe from unwanted events"Stéphane Desneux1-3/+20
2019-10-17Merge "Handle 'alsacore' events in a dedicated function"Stéphane Desneux3-76/+199
2019-10-17Merge "Add function to unsubscribe from audio card event"Stéphane Desneux2-7/+27
2019-10-17Merge "Rework Alsacore subscription functions"Stéphane Desneux3-11/+38
2019-10-17Merge "Add an 'info' verb to 'hal-manager'"Stéphane Desneux3-0/+89
2019-10-17Merge "Add verbose level to json hal info verb"Stéphane Desneux3-54/+100
2019-10-17Merge "Add function to 'detach' dependency from mixer"Stéphane Desneux3-1/+87
2019-10-17Merge "Rework mixer calls to handle dependencies"Stéphane Desneux4-11/+39
2019-10-17Merge "Improve json dependency list generation function"Stéphane Desneux2-0/+62
2019-10-17Merge "Add 'available' info in dependency json"Stéphane Desneux1-1/+2
2019-10-17Merge "Add a function for dynamic dependencies handling"Stéphane Desneux2-0/+21
2019-10-17Merge "Allow use of dependency free function for everyone"Stéphane Desneux1-0/+1
2019-10-17Merge "Move hal api delete code into a function"Stéphane Desneux3-11/+46
2019-10-17Merge "Reorder 'internals-hal-cb.c' functions"Stéphane Desneux2-559/+559
2019-10-17Merge "Correct behaviour of halmap handling function"Stéphane Desneux1-2/+2
2019-10-17Merge "Correct hal-4a-example.json"Stéphane Desneux1-1/+1
2019-10-17Merge "Correction of print in control creation function"Stéphane Desneux1-1/+1
2019-10-17Merge "Remove an unnecessary double pointer"Stéphane Desneux1-7/+3
2019-10-17Add a function to delete all hal apiJonathan Aillet2-0/+40
BUG-AGL: SPEC-2893 Change-Id: I577565ac2134f87151491644c74c057e3634ed52 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Unmanage all halmap before deleting hal apiJonathan Aillet1-2/+13
Unmanage all halmap before deleting hal api. This assures removing all added custom ALSA control before deleting hal api. BUG-AGL: SPEC-2893 Change-Id: Id7af6c198d3d215709e81679e4e310d24b501458 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Add functions to unmanage handled halmapJonathan Aillet2-28/+142
Add functions to unmanage handled halmap. Using these functions, it is possible to unmanage : - a specific halmap. - dependency related halmaps (e.g. at dynamic dependency disconnection). - all handled halmaps (a.g. at binder exit). BUG-AGL: SPEC-2893 Change-Id: I24c40ade8a392b30ad962e2396fdb5f8d7e71b33 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Add function to delete an ALSA controlJonathan Aillet2-0/+88
Add function to delete a previously created ALSA control. BUG-AGL: SPEC-2893 Change-Id: If6890712b167bba021812e899ec878075d5472af Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Unsubscribe from unwanted eventsJonathan Aillet1-3/+20
Unsubscribe from ALSA card control events when the card is not used by any 'halmap'. BUG-AGL: SPEC-2892 Change-Id: I3ce2ae8e7133797778d3d0edd393324aa345ef1f Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Handle 'alsacore' events in a dedicated functionJonathan Aillet3-76/+199
Handle 'alsacore' events in a dedicated function. For now, only 'controls' events are handled. This modification will also ease addition of other 'alsacore' events. BUG-AGL: SPEC-2885 Change-Id: Ie56d4d58242fd7ff78306d85b54d48ed771f3227 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Add function to unsubscribe from audio card eventJonathan Aillet2-7/+27
Add function to unsubscribe from Alsacore audio card event. BUG-AGL: SPEC-2891 Change-Id: I2b9856a8c6e795c46bf0ae7382859ea2859bf985 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Rework Alsacore subscription functionsJonathan Aillet3-11/+38
Reworking of Alsacore subscription functions to ease adding new Alsacore events subscription. BUG-AGL: SPEC-2891 Change-Id: I8796bc5923e640cccd5a27167a0aa58ca4967609 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Add an 'info' verb to 'hal-manager'Jonathan Aillet3-0/+89
Add an 'info' verb to 'hal-manager' that allows to get information about all json hal. The verbose level can be specified. If it is not, it will be set to the lowest by default. BUG-AGL: SPEC-2890 Change-Id: I113a733b32e1b758f94586006df6ab0130cf097a Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Add verbose level to json hal info verbJonathan Aillet3-54/+100
Add verbose level to specify the requested information level when calling a json hal 'info' verb. Also, move into a function the code that allows to get information about json hal. BUG-AGL: SPEC-2889 Change-Id: I9d5cbc6cfa550f4f7c8033dad0f3ec66d1268ea5 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Add function to 'detach' dependency from mixerJonathan Aillet3-1/+87
Add function to perform a 'detach' verb call to mixer to detach a dependency. This will be useful for 'dynamic' dependency handling. BUG-AGL: SPEC-2888 Change-Id: I4468b9fb0dedb79b637883ef88683274713765fa Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Rework mixer calls to handle dependenciesJonathan Aillet4-11/+39
Rework 'attach' mixer calls to handle dependencies individually. That means that an attach call will be performed for each dependency. To avoid errors when calling mixer, complete list of dependencies should be send to it, but we can specify which dependency we want to be processed using 'handled' key. BUG-AGL: SPEC-2887 Change-Id: I9db7391fe7a44ba045fd82d94221a1442b7c2198 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Improve json dependency list generation functionJonathan Aillet2-0/+62
Add function to generate json dependency list while indicating which dependency is handled (using dependency 'uid'). Will be useful for mixer calls. BUG-AGL: SPEC-2886 Change-Id: I2d23845af00796d73ce641e8c33a0e880f50c8b3 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Add 'available' info in dependency jsonJonathan Aillet1-1/+2
Add boolean 'available' info in dependency json to indicate if a dependency is resolved. This json is used when calling mixer, therefore this information will be usefull for mixer. BUG-AGL: SPEC-2886 Change-Id: I957c23c8c22b77fa187d3fe505d6944d8047ed84 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Add a function for dynamic dependencies handlingJonathan Aillet2-0/+21
Add a function to get number of dynamic dependencies in dependency list. BUG-AGL: SPEC-2886 Change-Id: Ieb912bdb476c833c9f9c71710690b83976fc3d73 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Allow use of dependency free function for everyoneJonathan Aillet1-0/+1
Allow use of 'HalUtlFreeSelectedProbedDeviceDataAllocation' function available in '4a-hal-utilities' for everyone. This function can be used to free allocated content stored in dependency data structure after a successfully search for dependency. BUG-AGL: SPEC-2886 Change-Id: I1c68b32fc7adc0191ee05ce4b9fdc54db2f8b105 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Move hal api delete code into a functionJonathan Aillet3-11/+46
BUG-AGL: SPEC-2885 Change-Id: I23c605440782f8caeef30c1fe41f4cac5b704dbb Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Reorder 'internals-hal-cb.c' functionsJonathan Aillet2-559/+559
Reorder hal json section handling functions in 'internals-hal-cb.c' to match processing order define in 'ctrlSectionsDefault' table. BUG-AGL: SPEC-2885 Change-Id: I9bf2c59706982339b5676fe900c7f48af68b96c8 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Correct behaviour of halmap handling functionJonathan Aillet1-2/+2
Correct behaviour of halmap handling function by : - Avoid unnecessary set to 0 newly allocated data. - Correct return value. BUG-AGL: SPEC-2884 Change-Id: I647812e8fe8770954ada5cfded2505bf9f412699 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Correct hal-4a-example.jsonJonathan Aillet1-1/+1
Correct hal-4a-example.json in section creating custom ALSA control linked to an afb api/verb call. BUG-AGL: SPEC-2884 Change-Id: I273c5b3f326ee3b1531426738045a1391fa727f2 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Correction of print in control creation functionJonathan Aillet1-1/+1
Correction of an error print in ALSA control creation function. BUG-AGL: SPEC-2884 Change-Id: I518eae1595bfeaaf9437e442895efea2f3c77904 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Remove useless things about ping functionJonathan Aillet2-3/+0
Remove useless things about 'HalUtlPing' function. BUG-AGL: SPEC-2884 Change-Id: I8ad30e91ac45d340a5f64922da6a87658a3cd2b3 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Remove an unnecessary double pointerJonathan Aillet1-7/+3
Remove an unnecessary double pointer in 'InternalHalHandleOneHalDependencies' function. BUG-AGL: SPEC-2884 Change-Id: I20e0b0d11288814322b3480a70b77df14a08564a Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-17Prevent binder exit when hal initialization failsJonathan Aillet4-11/+17
No longer returns an error in hal api initialization function when an non-blocking error happens (e.g. card-sound not found). This will prevent application framework binder exit. BUG-AGL: SPEC-2906 Change-Id: I0ef5e5f624fc0021771f40f37ce5663510a7e03e Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>