Age | Commit message (Collapse) | Author | Files | Lines |
|
Rename files handling call/response of mixer.
Change-Id: I070f109e2f0249b74548ae7dc7b84793926cb261
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Update 4a-hal to work with new 4a-softmixer version :
- Update audio configuration files to match the configuration format
expected by the mixer.
- Parse mixer attach response to get information about 'streams',
'playbacks', and 'captures'. store them in new field of controller hal
data structure.
- Create verb for each returned stream, but only one playback/capture verb
even if threre are multiple playbacks/captures returned by the mixer
attch verb.
- Return 'streams', 'playbacks', and 'captures' when info verb is called.
- If info verb is called with a json request, the request is transfered
to the mixer.
Change-Id: I65593281c34aa91ad87afbf8bebff755cc5cc6d0
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Move mixer attach at hal startup instead of making attachment possible
only with a verb.
Now, if the hal audio device is detected at startup, it will
automatically be attached to the mixer.
As it is useless now, the verb used to attach mixer has been deleted.
Change-Id: I32c8b829ac37fb31ede4fe8830a6f2a699c0835c
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Include <afb-definitions.h> from 'app-controller' instead of
<afb/afb-binding.h> and use its definitions.
It allows to migrate from an application framework version to another
with less impact on the code.
Change-Id: I22359cd3fe22145b3d6c551f227be2ba7e1b65d5
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Use error codes when handling mixer initialization response.
Change-Id: Ie62b022f1a653be18766a09f1803995a77ae8582
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Replace controller macro use by application framework macro use.
Change-Id: Icee0855a311857ab21a4a5031c4e06ac58b8f295
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Two functions has been added in a new file in 4a-hal-utilities :
- A function that handle application framework call errors by returning
a specific error.
- A function that handle application framework call errors from a request.
Change-Id: I657773586111adc609cbbaead7db589a82e133b0
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Set file creation date to 2018 instead of 2016.
Change-Id: I0349bbc1dde097f899d9b38dd28b3891f88020ad
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Use a function to handle mixer responses on stream action calls correctly.
Before, there was no differencations between responses from api calls
that didn't end well.
Now, we print a different message if the api/verb is not found and if
the request was transfered but an error occured during it.
Change-Id: Ib4f9c3cf14b6612cd14762b74466ce484fdfb09d
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Handle mixer response to get created streams and them corresponding
card ids after mixer initialization. Store these informations into the
controller hal data strucure.
Creation of a verb for each stream is now handle at response handling.
Remove unnecessary function because we don't need to search for a
stream by his name.
Change-Id: Id9e598668b071ca18d152b57e71109314025f698
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|