From 665073e727623ac7228a86b003004956bf774adb Mon Sep 17 00:00:00 2001 From: Fulup Ar Foll Date: Sat, 4 Nov 2017 15:03:58 +0100 Subject: Added PcmInfo API Change HAL register to fallback to driver name when not direct match found --- alsa-binding/Alsa-ApiHat.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'alsa-binding/Alsa-ApiHat.h') diff --git a/alsa-binding/Alsa-ApiHat.h b/alsa-binding/Alsa-ApiHat.h index c0e1a1a..97517f3 100644 --- a/alsa-binding/Alsa-ApiHat.h +++ b/alsa-binding/Alsa-ApiHat.h @@ -26,8 +26,6 @@ #define AFB_BINDING_VERSION 2 #include #include -#include -#include // Waiting for official macro from José #define AFB_GET_VERBOSITY afb_get_verbosity_v2() @@ -35,6 +33,15 @@ // Soft control have dynamically allocated numid #define CTL_AUTO -1 +#ifndef PUBLIC + #define PUBLIC +#endif +#define STATIC static + +#ifndef CONTROL_MAXPATH_LEN + #define CONTROL_MAXPATH_LEN 255 +#endif + typedef enum { QUERY_QUIET =0, QUERY_COMPACT =1, @@ -87,6 +94,7 @@ PUBLIC void alsaEvtSubcribe (struct afb_req request); PUBLIC void alsaGetCardId (struct afb_req request); PUBLIC void alsaRegisterHal (struct afb_req request); PUBLIC void alsaActiveHal (struct afb_req request); +PUBLIC void alsaPcmInfo (struct afb_req request); #endif /* ALSALIBMAPPING_H */ -- cgit 1.2.3-korg