From db4d63597b22b63eb73b5c0558476652ed4988bb Mon Sep 17 00:00:00 2001 From: fulup Date: Sun, 9 Jul 2017 19:59:24 +0200 Subject: initial version of HAL (registration + getctls) Work in progress --- HAL-afb/HAL-interface/hal-interface.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'HAL-afb/HAL-interface/hal-interface.h') diff --git a/HAL-afb/HAL-interface/hal-interface.h b/HAL-afb/HAL-interface/hal-interface.h index 16da901..2cd3586 100644 --- a/HAL-afb/HAL-interface/hal-interface.h +++ b/HAL-afb/HAL-interface/hal-interface.h @@ -24,14 +24,13 @@ #include "audio-interface.h" typedef struct { - halCtlsEnumT control; char* name; int numid; - halGroupEnumT group; int values; int minval; int maxval; int step; + int count; snd_ctl_elem_type_t type; halAclEnumT acl; } alsaHalCtlMapT; @@ -40,19 +39,21 @@ typedef struct { typedef struct afb_service alsaHalServiceT; typedef struct { - struct json_object* (*callback)(alsaHalCtlMapT *control, void* handle); + struct json_object* (*callback)(alsaHalCtlMapT *control, void* handle, struct json_object *valuesJ); void* handle; } alsaHalCbMapT; typedef struct { - alsaHalCtlMapT alsa; + halCtlsEnumT tag; + const char *label; + alsaHalCtlMapT ctl; alsaHalCbMapT cb; char* info; } alsaHalMapT; typedef const struct { - const char *name; + char *name; const char *info; alsaHalMapT *ctls; } alsaHalSndCardT; -- cgit 1.2.3-korg