diff options
author | fulup <fulup.arfoll@iot.bzh> | 2017-07-09 19:59:24 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2017-07-09 19:59:24 +0200 |
commit | db4d63597b22b63eb73b5c0558476652ed4988bb (patch) | |
tree | 839d67c2dd32064f1047f788f70860cf3036e691 /HAL-afb/HAL-interface/hal-interface.h | |
parent | 3d5816a07c22dd6c655a60000fb0f175d613e484 (diff) |
initial version of HAL (registration + getctls)
Work in progress
Diffstat (limited to 'HAL-afb/HAL-interface/hal-interface.h')
-rw-r--r-- | HAL-afb/HAL-interface/hal-interface.h | 11 |
1 files changed, 6 insertions, 5 deletions
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; |