summaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-ApiHat.h
AgeCommit message (Collapse)AuthorFilesLines
2019-10-01Add verb to get PCM availabilityJonathan Aillet1-1/+6
Add verb to get PCM availability, this verb will return a boolean json. PCM can be specified using two ways : - card & device & subdevice & stream - pcmName & stream BUG-AGL: SPEC-2834 Change-Id: I176fdc261fa117906a2af069d3ddd07d5941904c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-01Add possibility to unsubscribe from eventsJonathan Aillet1-7/+13
Add possibility to unsubscribe from events using 'unsubscribe' verb with the same json payload used for subscribe. BUG-AGL: SPEC-2833 Change-Id: Ie01f36b2bf0a446cc80b09d79417a301ce9ecfff Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-01Add verb to remove custom ALSA controlJonathan Aillet1-1/+8
Add verb to remove previously added custom ALSA control. It can be done using 'removecustomctl' verb. BUG-AGL: SPEC-2836 Change-Id: I07b842e3425f6c176423473afcd8b3d18dcaa79b Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-01Rework verb request json parsingJonathan Aillet1-4/+3
Rework verb request json parsing to allow having request without 'devid' key in json. BUG-AGL: SPEC-2832 Change-Id: Id937d98c29d30b9298be3a1972f1a2cf5d0b722c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-10-01Add a definition for subdevice maximumJonathan Aillet1-3/+4
Add a definition to define the maximum number of subdevices in an ALSA device. BUG-AGL: SPEC-2832 Change-Id: Id44d53252119319feb400f3b3fa59534392038af Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-08-19Make a function to get card number from card pathJonathan Aillet1-0/+1
Make a function to get card number from card path, will be needed to for added/removed card events. Bug-AGL: SPEC-2749 Change-Id: Ic0cc6fd84a54432c696892772f2f66d1bde59a65 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-08-19Declare 'getCardInfo' function as publicJonathan Aillet1-0/+1
Declare 'getCardInfo' function as public, will be needed to get information about added/removed card events. Bug-AGL: SPEC-2749 Change-Id: Ic23542a64e92fd2b3f91853a968b3feff5b76cc5 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-02-19Rework ALSA card get info functionJonathan Aillet1-5/+18
Rework ALSA card get info function to : - Be able to probe an ALSA card depending on multiple parameters (card number, card path, card id, card short name, card long name, card driver, card mixer name, card components). If several parameters are requested, all should be true to find a corresponding card. - Be able to add parameters about a playback device depending on multiple parameters (device number, device id, device name). The combination of all card parameters and all device parameters should be true to find a corresponding card/device. - If a corresponding card/device is found, information about it will be returned as a json object. - If multiple card/device are corresponding to the request, all cards information will be returned in a json array. - If no request json is available, all cards information will be returned (using a json array). - Add the possibility to ask for multiple card/device in one verb call using a json array in request json. Each case will be handled as an individual request. The response will be an array of the same length as the request json, with each response case corresponding to the request case. Change-Id: Ia71e40ce10c8bb10d51099832748c5621d202647 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-07-20Use some app-fwk macros to support v2 and v3Jonathan Aillet1-15/+15
Use some application framework macros to support both v2 and v3 compilation. Change-Id: I3051bbeff8788ea2c71545e5d253619d4749ff41 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-07-20Use app-fwk macro to get verbosity levelJonathan Aillet1-3/+0
Use application framework macro to get verbosity level instead of a legacy function. Change-Id: I925b2ccea3c7d58bc50281eb8d39f82dac1f49b4 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-07-20Set afb version in cmake instead of in headerJonathan Aillet1-1/+0
Set application framework binding version in cmake instead of setting it before including binding header. Change-Id: Ic841069248d40fdd023c8056a614e484004be298 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-06Add an option to 'ctlget' verbJonathan Aillet1-0/+1
Add a new way to ask for alsa controls info by implementing the possibility to ask for alsa control using its label. It is a clean way to get control numid using control label. Bug-AGL: SPEC-1405 Change-Id: If5387c63a41a07d451a21edab86e9bb90b4908c4 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-06-06Add an option to 'infoget' verbJonathan Aillet1-0/+5
Add a new way to get card info when using 'infoget' verb : When the request contains a section 'devpath', the path specified will be used to search for the device. Bug-AGL: SPEC-1405 Change-Id: Idc99a27229f0db3484f62f8f761b7e0daee13a3c Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2017-11-04Added PcmInfo APIFulup Ar Foll1-2/+10
Change HAL register to fallback to driver name when not direct match found
2017-10-24Initial working version as independent repoFulup Ar Foll1-0/+92