Age | Commit message (Collapse) | Author | Files | Lines |
|
Add a function that allows to search for an already ready hal
using its device id.
This function will be useful at mixer attach of hal to check if the alsa
device id is not already attach by another hal.
Change-Id: I2f46dca19a98310064ed1af772425bd9186e0a75
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change paramters in functions handling hal data structure.
Now, the only thing you need to add/search for/remove something in hal
data structure list is the address of the first element of the list
instead of the address of the whole hal manager data structure.
Change-Id: Iafa7428735c3aa418a6ef6564f9acde8f44e7dfe
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Remove Alsa max card as it won't be used, the detection of concurent hal
will be done by searching in hal list.
Change-Id: Ie1d2406d33cd4f794f18bce67bfc5859a6a52393
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add free of 'CtlHalAlsaMapT' data structure.
Change-Id: Icabc1d6f0d6e6977fead8260dd3932c6004c5d10
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>
|
|
Prevent sending data to mixer of hal is not ready.
Change-Id: Ie511a5e23760e87336745dbe15d8d2a5e9481518
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Change the way to handle app fw error by passing adresses of 'char *'
instead of a 'char **'.
Change-Id: I5e89efcf8db113103776f7dc3e40615dc874f400
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>
|
|
Correct a little mistake into verbs loader.
Change-Id: Iaf871a8ff9f629331827da48a007f4c67814727c
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>
|
|
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>
|
|
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>
|
|
Fix a typo in '4a-hal-utilities-verbs-loader.c' file.
Change-Id: I4e569227414bd8f6bdbe45333982aa9a932099cc
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
Add a table to see which controller hal is using which alsa hw.
This table is stored in the hal manager data structure.
It will be used at initialization to check if the device is free before
sending the mixer attach call.
Change-Id: I94bcb3224f2bf1756d4b53786e324ac13e55c573
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>
|
|
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>
|
|
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>
|
|
Initialized the whole hal data structure instead of member by member.
Free all strings if the hal is external (in this case, strings are
allocated by hal manager).
Change-Id: Ic860bcbf1999a870f34d12640e9c68b2cbc50876
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 some unnecessary free that used to free strings that are
handled by controller.
Remove test if NULL before free (free doesn't do anything if
pointer is NULL).
Change-Id: I9f9bdb3f194900567da6bd2dada6dae4ea87b1fa
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>
|