Age | Commit message (Collapse) | Author | Files | Lines |
|
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>
|
|
Add functions that allows to normalize values that are requested
to be sent with an alsa set control call (using alsacore).
Change-Id: I5046a66d807c9b9b6751e036a47303ceddc0c16a
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Get alsa controls properties by parsing the response sent by balsacore
when we search for an existing alsa control.
Change-Id: I9d13327ae2ef79c793dbd227589740f7e336e46c
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Process and handle alsa controls map by :
Parse and store info from 'halmap' section into a structure.
If the hal is available :
- Test if controls are available (if use of existing control).
- Create new controls (if use of control to create).
- Add a verb for each element of the section.
- Handle call to alsa when a verb request is detected.
- Resgister to event from this device.
- Handle call to action if event on this control is detected.
Change-Id: I246e16e9d02e64a1778f5c78d2458a33bdfb6d7e
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Correct a typo in responses of the callback that transfer action to mixer.
Change-Id: Ic9c33c00367963a6a3d3dbdf21b0e4cad27d0f7d
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Remove an unnecessary variable because it was used to get the result of a
function call and to test this result (in a 'if' statment).
So, to remove it, function was put directly into the 'if' statment.
Change-Id: Ie79caa35b0873c6ec7cfdb19a25a3506c0082e53
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Prevent sending data to mixer of hal is not ready.
Change-Id: Ie511a5e23760e87336745dbe15d8d2a5e9481518
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change the field name use to store card path into
controller hal data structure.
Change-Id: I4413a4e5550f3122055db4c6184907d8be407ceb
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Use a boolean to set if api is internal.
Change-Id: Ife5b8e052cf416205aca73c270bfb4b131be3656
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change the way to get card id using its path by returning directly
the found card id.
Corrects a typo in alsa core link header.
Change-Id: Ib202632e049921a57428b31a29f7def4d9e78aaa
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change a comment about what to provide when list verb is called.
Add 'playback' and 'capture' to response.
Change-Id: I2b663d9a83b18f870dbd7b23be4ef8f41664e25f
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
- Change some comments from TODO to TDB.
- Remove 'JAI' from warning messages.
Change-Id: Ib2c39d4e0f0ca34929237ab8ca3d66c9c0d269d0
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>
|
|
Correct a debug warning about a uninitialized variable.
Change-Id: I94b8a5ba42013dd0ede5706a1646a61d58e7ef73
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Fix a typo in a debug message.
Change-Id: Iee894287f43d74fd72e41faad42f0617c50c0cf8
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Test audio card presence at hal startup using alsacore call.
Handling a new state of hal.
Move alsacore link files into 4a-hal-controllers.
Check state of hal before mixer initialization call.
Actualize hal state if mixer initlialization ends well.
Add a sndCardId filed to 'SpecificHalData' structure which will contain
audio card if (from alsa).
Change-Id: I2e82a14ee6ba6e63f06fe2b498587783941b7b98
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Generate an error when mixer initialization is correctly transfered
to mixer api but an error was raised by it.
Change-Id: I617686b0167f9fb536ec56e430d10560e7f7ca31
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>
|
|
Add some missing cast when getting controller hal data structure.
Change-Id: I8fdfd7486345e89c4004c071b63890b751305ce2
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>
|
|
Rename 'cardId' filed to 'streamCardId' in 'CtlHalStreamData' structure.
Change-Id: I7615eece39aea6bf6b6aadd3361f58792e6531f6
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>
|
|
Don't raise an error when list verb is called on a controller hal and
there's no streams registered yet.
Change-Id: Ie4126673f134ced3e93e1111f988923e4bf13e64
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Fix typo in request answers info message send back to application
framework after an api verb call.
Change-Id: Icbd06fc13d9abff8325145c355b6c8c3c6434e1c
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>
|
|
To be able to declare new verbs for controller hal dynamic api, don't
seal this api after its initialization.
Change-Id: I0fd028034ef2f409eceae05b642c74163b26e332
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Stores uid of the hal mixer configuration in the specific controller
hal structure.
Use this uid as prefix when calling softmixer api.
Change-Id: Iab00518e02e0f9ff6dbd78c126eda45225c55256
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Implementation of function allowing to list streams and
controls of a controller hal.
Change-Id: Ic347dd89dbbf36056b0fc3c5fe25bd111a85f627
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Parse controller config to get 'halmap' controls, these controls
are inside 'halmap' section of controller configuration file.
Change-Id: I71fb8494927cf05d9751a69fede4b7622921c6c2
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Implementation of the function that transfer hal streams calls to
mixer api.
Change-Id: Icded7e160a1cfbe794c5fa2695bf0f9f54c80a06
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add creation of 4a-softmixer mixer as hal controller verb
called 'init-mixer'.
This verb sends json mixer configration to mixer api.
Add a forgotten cast.
Change-Id: Id4ca6b68caf21c74fb6b17b953d8db2f2db0c04b
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Parse controller configuration to get halmixer json object, this
object is inside 'halmixer' section of controller configuration file.
Use streams defined in this 'halmixer' section to get available streams
of this hal, store them, and declare them as hal api verbs.
Change-Id: I47adb2756f89f2a84c8d651ba38ecea5b84079c3
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
To avoid multiple variables at NULL in specific hal data,
use a structure to store all controller hal specific data.
These data won't be use if the hal is external (registered).
Example of controller hal specific data :
- Mixer api name
- Mixer initialization json
- Mixer streams names and card id
...
Change-Id: Ifc4823d5ea21ed408b4ecc25b870cad74d3b2173
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Rename function used to load verbs into a dynamic api from
'HalUtlLoadStaticVerbs' to 'HalUtlLoadVerbs' because it is
used to load not only static verbs.
Change-Id: Idc033ccf0a8e7556e0809e8fa3554d09d0e81d39
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Remove the 'ping' verb of each hal controller api which won't
be useful anymore.
Rename action in configuration file to be able ping an api nevertheless.
Change-Id: I5b1ce8f8cd83dc3e689c3bd676244477921ba20d
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add a 'List' verb to each hal controller api which will list verbs
available for this api.
The callback of the verb is not implemented yet.
Change-Id: Ibc44ef8673267b0b952b32fb256214452aa3c000
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change the name of controller configuration files to be sure that
they will be found during 'CtlConfigScan'.
Add the name that the binder should take into config.cmake
to be sure that the controller configuration files will be
found during 'CtlConfigScan'.
Change-Id: I94c55c186c52f6f89b06400133cfbce36221d245
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Remove sections id in sections callbacks structure because
it's not mandatory anymore (it's even harder to add a section
with these ids).
Change-Id: I04caa1c83137e4165c023207d2b58376c176c248
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change names of some structures fields to match the fileds name
in controller structure.
Change-Id: I579ec53835daa010154982539d09d5a2dcbd28b2
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Because of a recent change in the app-controller, change the way
that metadata was get.
Avoid to parse json again and use only CtlConfigT strcuture
fields to fill Hal controller api structure.
Add a fields info in Hal controller api structure.
Change-Id: I17ff00bfd6d0991bed47831a92bf81ddcf3fb4c9
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Pre-version of 4a-hal manager that uses app-fwk DynAPI
and app-controller.
Current version :
- Declare a new API for each HAL (each .json config file
is used to generate one app-controller API) at startup.
- Define verbs that will be provided by this API.
- Provide verb to list and get info of loaded API.
Change-Id: I7bb6e8b7539b1acd5556fd9275a1b536e129332d
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|