diff options
author | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2015-12-28 16:16:12 +0100 |
---|---|---|
committer | Manuel Bachmann <manuel.bachmann@iot.bzh> | 2015-12-28 16:16:12 +0100 |
commit | 07c775201fbd9477bd4a69cee3d48a95eb612bc6 (patch) | |
tree | 48bd25df68a0eb36b7c0dfb428dfc471905c668f /plugins/audio/audio-api.c | |
parent | 7181ede7add4eb3f5a92f5f8c9fd9cc8fdf6c659 (diff) |
Fix Audio plugin loading, mute on Porter/Koelsch
Audio plugin was crashing due to new client context model
misuse.
Muting/demuting sound did fail on Porter/Koelsch boards,
because their audio cards do not obey standards found on
desktop systems.
Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'plugins/audio/audio-api.c')
-rw-r--r-- | plugins/audio/audio-api.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/audio/audio-api.c b/plugins/audio/audio-api.c index 1311b652..4c7df8b0 100644 --- a/plugins/audio/audio-api.c +++ b/plugins/audio/audio-api.c @@ -60,14 +60,13 @@ STATIC void freeAudio (void *context) { STATIC json_object* init (AFB_request *request) { /* AFB_SESSION_CREATE */ - audioCtxHandleT *ctx; json_object *jresp; int idx; /* create a private client context */ request->context = initAudioCtx(); - _alsa_init("default", ctx); + _alsa_init("default", request->context); jresp = json_object_new_object(); json_object_object_add (jresp, "info", json_object_new_string ("Audio initialised")); |