Age | Commit message (Collapse) | Author | Files | Lines |
|
Rework subscription handling to :
- use an "event" key to select which event type we want to
subscribe to, this will allow an easier integration of new events.
- merge 'soundcard-added' and 'soundcard-removed' cards events into
one 'cards-monitoring' event. Will ease unsubscription.
- remove concept of 'mode' in json sent by event, this will allow
to avoid 'mode' conflicts when several bindings are subscribed
to the same event.
Also, normalize some syntax issues.
SPEC-2832
Change-Id: Ief8b3065a3e18dc710ef5b951053f96459c65e0b
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Use some application framework macros to support both
v2 and v3 compilation.
Change-Id: I3051bbeff8788ea2c71545e5d253619d4749ff41
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
|
|
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>
|
|
|
|
|
|
Change HAL register to fallback to driver name when not direct match found
|
|
|
|
|
|
|