diff options
-rw-r--r-- | plugins/alsa/alsa-api-mixer.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/alsa/alsa-api-mixer.c b/plugins/alsa/alsa-api-mixer.c index 73f208a..f0e8b78 100644 --- a/plugins/alsa/alsa-api-mixer.c +++ b/plugins/alsa/alsa-api-mixer.c @@ -59,9 +59,11 @@ CTLP_ONLOAD(plugin, callbacks){ } -static void MixerRemoveVerb(afb_req_t request) { - afb_req_fail_f(request, "internal-error", "Function not implemented"); - return; +static void MixerDetachVerb(afb_req_t request) { + AFB_REQ_DEBUG(request, + "Detach verb not implemented yet, received request json %s", + json_object_get_string(afb_req_json(request))); + afb_req_success(request, NULL, "Function not implemented"); } STATIC json_object *MixerInfoOneStream(AlsaStreamAudioT *stream, int verbose) { @@ -677,7 +679,7 @@ fail: STATIC afb_verb_t CtrlApiVerbs[] = { /* VERB'S NAME FUNCTION TO CALL SHORT DESCRIPTION */ { .verb = "attach", .callback = MixerAttachVerb, .info = "attach resources to mixer"}, - { .verb = "remove", .callback = MixerRemoveVerb, .info = "remove existing mixer streams, zones, ..."}, + { .verb = "detach", .callback = MixerDetachVerb, .info = "detach existing mixer streams, zones, ..."}, { .verb = "info", .callback = MixerInfoVerb, .info = "list existing mixer streams, zones, ..."}, { .verb = NULL} /* marker for end of the array */ }; |