summaryrefslogtreecommitdiffstats
path: root/alsa-binding
diff options
context:
space:
mode:
Diffstat (limited to 'alsa-binding')
-rw-r--r--alsa-binding/Alsa-ApiHat.h3
-rw-r--r--alsa-binding/Alsa-SetGet.c2
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));