Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
BUG-AGL: SPEC-2885
Change-Id: I23c605440782f8caeef30c1fe41f4cac5b704dbb
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Remove useless things about 'HalUtlPing' function.
BUG-AGL: SPEC-2884
Change-Id: I8ad30e91ac45d340a5f64922da6a87658a3cd2b3
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Remove an unnecessary double pointer in
'InternalHalHandleOneHalDependencies' function.
BUG-AGL: SPEC-2884
Change-Id: I20e0b0d11288814322b3480a70b77df14a08564a
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
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>
|
|
Update call to 'subscribe' verb of 'alsacore' api to match
last '4a-alsacore' events/subscription handling updates.
BUG-AGL: SPEC-2832
Change-Id: Ib6b5e1f4536440fd4f83a07d66fe047bfa889a5b
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Rename dependencies object key to avoid having
references to '4a-hal' in '4a-smixer.
BUG-AGL: SPEC-2831
Change-Id: Ibc7ff7551eccfe9dfade951d44c10185f16b1e5c
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Move ping function in 4a-utilities and register it as verb
into 4a-hal-manager and into each created 4a-hal-*.
Updates 4a-hal json configuration files to match these modifications.
BUG-AGL: SPEC-2733
Change-Id: If93a31296206923860262b225a8c7e0e8a6fd521
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add information about not resolved dependencies when calling
mixer attach verb (will be used to detect json format error).
BUG-AGL: SPEC-2733
Change-Id: Iae5f339aacef9fd97b923e75142d9cd0176f4b6f
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Remove error generation when no stream was created by mixer
at 'attach' call.
BUG-AGL: SPEC-2733
Change-Id: If5f0b521c449d3599925abe5e3e5a22d849f3c5d
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Create 'all_streams' verb at binding startup, that way,
it will always be created.
Generate a request fail when a call is done when no streams are created.
BUG-AGL: SPEC-2733
Change-Id: I1b7ec3b8ed0fcd617e4a016e455beb447d233c82
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Optimize hal 'info' response json allocation by removing
empty objects/arrays from response.
BUG-AGL: SPEC-2733
Change-Id: I521626b67076b603ab1caa974b697246c8fff759
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add information about events in README.md :
- Add information about existing 'internal' hal events.
- Add information about events to provide for an 'external' hal.
BUG-AGL: SPEC-2683
Change-Id: I46e43fab026f850fd67852a19442ef6987872b61
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Correct some typo and call format for '4a-hal-manager loaded'.
BUG-AGL: SPEC-2683
Change-Id: I67916fcecab1efa4646badfd54ef87c8f6889dc5
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Correct ramps call syntax in README.md.
BUG-AGL: SPEC-2683
Change-Id: Ib580a3dc7c681949c542f8dec1eb97fd14e9088a
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add an example json configuration files to show how to write
"haldependencies" and "halmap" sections.
BUG-AGL: SPEC-2683
Change-Id: I3642677ec6aae6144d2e30dc3f3680ebf473dccf
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Update README.md to describe last version of hal functionalities and
how to compile/use 4a-hal.
BUG-AGL: SPEC-2683
Change-Id: I8ddf97872fc34c6e3fb3a9f7cc59a096849854fa
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Remove hal api and hal data if an error happened at hal initialization.
Also prevent binding to stop if a hal failed to init.
BUG-AGL: SPEC-2652
Change-Id: Ifcef2fdf135e152f300febf6a934e43352f86fc2
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add utilities files to create/delete hal apis while adding hal data
to hal data list.
Use it to create new hal apis.
BUG-AGL: SPEC-2652
Change-Id: I62e99cda31bb2c6f597da27960102c036a25b733
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Correct error level when a mandatory hal-dependencies is not available.
BUG-AGL: SPEC-2652
Change-Id: I053913a83be8124eaac26dd4f2cd28d1e5ff5083
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Correct typo in stream handling files.
BUG-AGL: SPEC-2652
Change-Id: I3a1ee384dabf564b9d4903e2bac51210d357ff8f
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|