summaryrefslogtreecommitdiffstats
path: root/alsa-binding/Alsa-ApiHat.h
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-09-20 12:08:25 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-10-01 10:57:28 +0200
commitf51db7cc6a8aed530ca24adda4be279b5b4d6a84 (patch)
tree3261273a94bd8b31dd6f9812eb0cc3f1fb79df20 /alsa-binding/Alsa-ApiHat.h
parent2be5e4462b36b9ccc7562a83047de81dffe7e899 (diff)
Add verb to remove custom ALSA control
Add verb to remove previously added custom ALSA control. It can be done using 'removecustomctl' verb. BUG-AGL: SPEC-2836 Change-Id: I07b842e3425f6c176423473afcd8b3d18dcaa79b Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'alsa-binding/Alsa-ApiHat.h')
-rw-r--r--alsa-binding/Alsa-ApiHat.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/alsa-binding/Alsa-ApiHat.h b/alsa-binding/Alsa-ApiHat.h
index ba0d054..209c65b 100644
--- a/alsa-binding/Alsa-ApiHat.h
+++ b/alsa-binding/Alsa-ApiHat.h
@@ -27,7 +27,8 @@
#include <json-c/json.h>
// Soft control have dynamically allocated numid
-#define CTL_AUTO -1
+#define CTL_AUTO -1
+#define CTL_UNKNOWN -2
#ifndef PUBLIC
#define PUBLIC
@@ -54,6 +55,11 @@ typedef enum {
ACTION_GET
} ActionSetGetT;
+typedef enum {
+ CONTROL_ADD,
+ CONTROL_REMOVE
+} ControlAddRemoveT;
+
// structure to store card
typedef struct {
int cardNb;
@@ -105,6 +111,7 @@ PUBLIC void alsaUseCaseGet(afb_req_t request);
PUBLIC void alsaUseCaseClose(afb_req_t request);
PUBLIC void alsaUseCaseReset(afb_req_t request);
PUBLIC void alsaAddCustomCtls(afb_req_t request);
+PUBLIC void alsaRemoveCustomCtls(afb_req_t request);
// AlsaRegEvt
PUBLIC void alsaEvtSubcribe (afb_req_t request);