From cd161b3b009da14bbdef9e3015320d053ebbf550 Mon Sep 17 00:00:00 2001 From: Boram Park Date: Wed, 23 Nov 2016 10:20:58 +0900 Subject: [PATCH] add capture type enum Change-Id: I7d9b8f148f703128619b45a29128979708d15861 --- include/tdm_common.h | 8 ++++++++ include/tdm_types.h | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/include/tdm_common.h b/include/tdm_common.h index b5a9c2e..1894505 100644 --- a/include/tdm_common.h +++ b/include/tdm_common.h @@ -148,6 +148,14 @@ typedef enum { } tdm_capture_capability; /** + * @brief The capture type enumeration + */ +typedef enum { + TDM_CAPTURE_TYPE_ONESHOT = (1 << 0), /**< The oneshot capture */ + TDM_CAPTURE_TYPE_STREAM = (1 << 1), /**< The stream capture */ +} tdm_capture_type; + +/** * @brief The output change enumeration of #tdm_output_change_handler */ typedef enum { diff --git a/include/tdm_types.h b/include/tdm_types.h index fd446cd..3cd8560 100644 --- a/include/tdm_types.h +++ b/include/tdm_types.h @@ -122,7 +122,7 @@ typedef struct _tdm_info_pp { typedef struct _tdm_info_capture { tdm_info_config dst_config; tdm_transform transform; - int oneshot; + tdm_capture_type type; int frequency; int flags; } tdm_info_capture; -- 2.7.4