aboutsummaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-RegEvt.c
AgeCommit message (Collapse)AuthorFilesLines
2019-10-01Rework verb request json parsingJonathan Aillet1-34/+42
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-08-19Add events when ALSA card are added/removedJonathan Aillet1-2/+271
Add 'soundcard-added'/'soundcard-removed' application framework events to be notified when ALSA card are added/removed. Use subscribe verb and json '{ "devid" : "added" }' to subscribe to added card events. Use subscribe verb and json '{ "devid" : "removed" }' to subscribe to removed card events. Bug-AGL: SPEC-2749 Change-Id: Ia021d7f6984b2263a5011121a69f17bb4ee2bf9e Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-08-19Rework ALSA card control events functionsJonathan Aillet1-66/+84
Rework ALSA card control events subscription and handling to: - Clean unnecessary part of codes. - Increase reliability of ALSA control events polling callback. Bug-AGL: SPEC-2749 Change-Id: I75dc90483254b1befdf83968c9032ec877c1d895 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2019-08-14Avoid epoll errors to be fired indefinitelyJonathan Aillet1-0/+6
When a audio card with control event generation is removed, avoid epoll errors to be fired indefinitely by event loop. Bug-AGL: SPEC-2749 Change-Id: I65dddc2f9714fa2303773b212bc3cad7cb164d73 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2018-07-20Use some app-fwk macros to support v2 and v3Jonathan Aillet1-8/+8
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-20Correct warning that was raised at compilationJonathan Aillet1-1/+1
Correct warning that was raised at compilation concerning 3 subjects : - Too short strings for 'snprintf'. - Forget cast returns of 'json_object_array_length' function. - Checking return of 'asprintf' function. Change-Id: I0fc702750841a0f8da921c3c3b1453c5afee0fd8 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
2017-11-05Fix Regression on Volume RampingFulup Ar Foll1-1/+1
2017-11-05Improve Sound Card By Driver Name DetectionFulup Ar Foll1-25/+36
2017-11-04Added PcmInfo APIFulup Ar Foll1-11/+177
Change HAL register to fallback to driver name when not direct match found
2017-11-02Fix double CloseFulup Ar Foll1-1/+0
2017-11-02Fix FD leaking on Alsa ControlFulup Ar Foll1-1/+4
2017-10-24Initial working version as independent repoFulup Ar Foll1-0/+395