Age | Commit message (Collapse) | Author | Files | Lines |
|
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 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 typo in stream handling files.
BUG-AGL: SPEC-2652
Change-Id: I3a1ee384dabf564b9d4903e2bac51210d357ff8f
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
As we are now using haldependencies to get hal card number(s),
it does not make sense to store a global card number for a hal.
BUG-AGL: SPEC-2329
Change-Id: If5beb84b71b5e5e67aeabd947b5c3edbf154fa3c
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Use haldependencies section definition to process and
to handle halmap section.
That means that each 'halmap' control can use its own probed
audio device card number using a targeted dependencies.
Also, change halmap section definition to be able to handle
several halmap defined with the same dependencies.
Update example hal to match new json file format.
BUG-AGL: SPEC-2329
Change-Id: I31997a037ee8f0e727e0a67866d651b988b85260
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Use a dynamically allocated structure to store properties
about ALSA controls (halmap).
BUG-AGL: SPEC-2329
Change-Id: I691648452d6c950d201bc25977a493608fede197
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Use of linked list for 'halmap' data instead of a fixed array.
It uses the same mechanism already implemented for other linked list.
BUG-AGL: SPEC-2329
Change-Id: I2ff9c9a797a5547cd74f0240c5b7573a02c90781
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Rework json strings allocation/freeing because :
- Some json strings are freed twice.
- Some containing strings json are not correctly freed.
BUG-AGL: SPEC-2329
Change-Id: I90f9470c6a4bc4b1641a01dd2da5051da1ff9547
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add function to get probed device card number using its uid.
BUG-AGL: SPEC-2329
Change-Id: I75bd368d0b1d0ab6d41fc0d75b30511fa7e8584f
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Refactoring 'hal data' linked list code using liburcu.
BUG-AGL: SPEC-2329
Change-Id: Ia51d362f96838f4b5bb77e8d1b85fa8d1ab4bed1
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Refactoring 'streams data' linked list code using liburcu.
BUG-AGL: SPEC-2329
Change-Id: Idf9367c015d73574d96d83c82a9e8f5b7588a45d
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Refactoring 'probed devices' linked list code using liburcu.
BUG-AGL: SPEC-2329
Change-Id: I4d0255bc020733b1abbea1f3e6195c73cf8da8f6
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Move function used to test if a dependency is selected.
BUG-AGL: SPEC-2329
Change-Id: Ic577a33741d705e09dd14a48dde0483db792b97d
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add functions to generate 'hal-dependencies' information json.
Provide two type of json generation ('compact' with only
extended card number info, and 'full' with all ALSA card info).
Provide function to get information about all 'hal-dependencies' and
another function to get information about validated 'hal-dependencies'.
BUG-AGL: SPEC-2329
Change-Id: If04cbbab7c79a066d2d03fa5ff16ea698de9b018
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Move functions used to generate hal information json into
there corresponding files in hal-utilities.
BUG-AGL: SPEC-2329
Change-Id: Id518e7f732ef393bbf98f3b3a32edf01ec81f70c
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Split too long function declarations in hal-utilities.
BUG-AGL: SPEC-2329
Change-Id: Ia8a18844dd7db52b19db366d737240286d04f9cd
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add function to handle probed audio device list.
This list will be used to store incoming 'haldependencies'
section data. It will also be used to store audio card information
resulting from probing requested audio devices specified
in 'haldependencies' section.
BUG-AGL: SPEC-2329
Change-Id: Iaa9aaba7a01263ca2d17be01c32803702568d614
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
'uid' field is currently used to store the audio device to
search for the hal. But with haldependencies' feature,
'uid' field won't be used to search for the audio device anymore.
So, 'uid' field is stored elsewhere into the hal data structure
(returned when asking for hal informations).
BUG-AGL: SPEC-2329
Change-Id: Ib3b2b3bacaecfa80a51f94f9d6874789baba0224
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Rework mixer answer handling to make it simpler and
to avoid fanciful returns.
Add some error prints to help diagnostic in case of
mixer answer handling error.
BUG-AGL : SPEC-2329
Change-Id: I14fe86496585bdc66b8aa761f4ff2c56333c5515
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Remove obsolete links to playbacks/captures softmixer controls.
These links are not used anymore (only 'halmap' controls are used).
It also means that references to controls in 'halmixer' section
of json configuration files must be removed (as it's done for example
json configuration file in this commit).
BUG-AGL : SPEC-2329
Change-Id: Ic5a7f055d09b44021d817c04d56023fed3c0e478
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Improve search for specific mixer data in linked list when the search
is using stream properties.
BUG-AGL: SPEC-2329
Change-Id: Idd5ea0540ace508b8b8351f38a3832f7d0f8a760
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Improve static verbs loading by using 'afb_api_set_verbs_v3'
application_framework function.
BUG-AGL: SPEC-2329
Change-Id: I3fe5397316d4a582635da637ab6a207b606c496e
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Concern several types of allocation such as :
- malloc/calloc
- json_object_new_*
- wrap_json_pack
- strdup
BUG-AGL: SPEC-2329
Change-Id: Iffe2a6a44ef4df2ed0ec4d159682159db5e78cfb
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Correct mistakes due to use of unsigned returns.
Also, simplify use of int by replacing 'int8_t'
and 'int64_t' types by plain 'int' type.
BUG-AGL: SPEC-2329
Change-Id: I24fe273c5a233762c072f7bc9e79eab32a1c824c
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add forgotten freeing of hal data when removing hal from linked list.
BUG-AGL: SPEC-2329
Change-Id: Iddef1c1f23be587792907f4ab009a2567f4b7834
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Normalize coding style among project :
- When possible, set the variable outside test in 'if' statement.
- Remove fanciful returns.
- Split too long lines.
- Remove unnecessary '\n' into prints.
- Normalize use of tabulation.
- Use 'afb_req_fail' instead of 'afb_req_fail_f' when possible.
- Add some error prints.
BUG-AGL: SPEC-2329
Change-Id: I14867e05e02b4c4c0389108c335fec2d2aa27495
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Reorganize repository directories to clarify code use.
BUG-AGL: SPEC-2329
Change-Id: Ia9be0c1818cb2e331e75b51a87fcb2820407c1d8
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|