summaryrefslogtreecommitdiffstats
path: root/alsa-hook/PolicyAlsaHook.c
AgeCommit message (Collapse)AuthorFilesLines
2018-07-20Correct warning that was raised at compilationJonathan Aillet1-3/+9
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>
2018-05-31alsa-hook: Update to future version of app-framework-binderJosé Bollo1-2/+6
The subcall behaviour changes. This commits updates the code to the upcoming behaviour. Change-Id: Ib43b085017536feeb379750bbdef4616d69651cd Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-05-24Update to binder changes for bindings v3José Bollo1-0/+12
The bindings v3 are now allowed to return an object with errors. To enforce taking that change into account, the signature of the object changed. It implies some change in clients. The current patch makes a minimal change. Change-Id: I587b5b656d57e747bd4bb1d9f7fa97126211f891 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2018-01-05Improve resource liberationRonan Le Martret1-16/+50
* Add magic to pcm handle to assert client (pulse) provides a valid structure and ignore invalid data. * TMP Fix for CES 2018, return True even policies are refused. otherwith sig fault. * TMP remove afb_proto_ws_unref on client. Change-Id: I498786147e2dac473a6a9704fef7d12fe4fcaf10 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-12-27Fix undeclared event crash on 4ARonan Le Martret1-15/+66
- Add comment to Alsa Hook - Free resource when closing PCM - Fix Mainloop freeze on the second query Bug-AGL: SPEC-1110 Change-Id: I296f30b82cc85d4a57c1300518627ff1f8685c57 Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-12-20Change websock session id from uid only to pcm+uidRonan Le Martret1-3/+1
This allow to have one session per PCM in order to allow a single process handling multiple PCM like pulse to have on independant session per PCM. Change-Id: Icdd3e4d44539dba2349d70edeaaeee861c3bd1cf Signed-off-by: Fulup Ar Foll <fulup@iot.bzh> Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org> Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-11-28Improve thread ressource liberationRonan Le Martret1-41/+42
* afbClient thread must be kill when we Close the alsa Hook Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh> Change-Id: I834f888f41c179950ea7c03d6d9325d7df5b4599
2017-11-23Fix infinity loop erroreel_4.99.3eel/4.99.34.99.3Ronan Le Martret1-3/+7
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
2017-11-05Added few debug messageFulup Ar Foll1-1/+2
2017-11-05Many any error fatal in Synchronous modeFulup Ar Foll1-3/+3
2017-11-05Many any error fatal in Synchronous modeFulup Ar Foll1-7/+13
2017-11-05Updated to support search value in response to be intergerFulup Ar Foll1-14/+37
2017-11-02fix indentJosé Bollo1-1/+2
Change-Id: If4173ea56b2ecf39f6fbdd15ed84321468a0a56a Signed-off-by: José Bollo <jose.bollo@iot.bzh>
2017-11-01Move to support Audio-4a High Level APIFulup Ar Foll1-0/+640