diff options
author | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-07-19 17:18:56 +0200 |
---|---|---|
committer | Jonathan Aillet <jonathan.aillet@iot.bzh> | 2018-07-20 11:39:29 +0000 |
commit | 2209293bec9ce0cff772dedbec326704f5a2ca42 (patch) | |
tree | 6e63eabc91704fe6ab320106fd5da8f74a65282f /alsa-binding | |
parent | 22043a68d0fe0652dd7e0b1041f6f448e867390b (diff) |
Use app-fwk macro to get verbosity level
Use application framework macro to get verbosity level instead of a
legacy function.
Change-Id: I925b2ccea3c7d58bc50281eb8d39f82dac1f49b4
Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
Diffstat (limited to 'alsa-binding')
-rw-r--r-- | alsa-binding/Alsa-ApiHat.h | 3 | ||||
-rw-r--r-- | alsa-binding/Alsa-SetGet.c | 2 |
2 files changed, 1 insertions, 4 deletions
diff --git a/alsa-binding/Alsa-ApiHat.h b/alsa-binding/Alsa-ApiHat.h index ae735e8..7e7c349 100644 --- a/alsa-binding/Alsa-ApiHat.h +++ b/alsa-binding/Alsa-ApiHat.h @@ -26,9 +26,6 @@ #include <afb/afb-binding.h> #include <json-c/json.h> -// Waiting for official macro from José -#define AFB_GET_VERBOSITY afb_get_verbosity_v2() - // Soft control have dynamically allocated numid #define CTL_AUTO -1 diff --git a/alsa-binding/Alsa-SetGet.c b/alsa-binding/Alsa-SetGet.c index 00e7bec..6983817 100644 --- a/alsa-binding/Alsa-SetGet.c +++ b/alsa-binding/Alsa-SetGet.c @@ -409,7 +409,7 @@ STATIC json_object* alsaCardProbe(const char *rqt, InfoGetT infoType) { name = snd_ctl_card_info_get_name(cardinfo); json_object_object_add(ctlDev, "name", json_object_new_string(name)); - if (AFB_GET_VERBOSITY > 1) { + if (afb_get_verbosity() >= AFB_VERBOSITY_LEVEL_NOTICE) { driver = snd_ctl_card_info_get_driver(cardinfo); json_object_object_add(ctlDev, "driver", json_object_new_string(driver)); info = strdup(snd_ctl_card_info_get_longname(cardinfo)); |