add capture type enum 59/99459/2
authorBoram Park <boram1288.park@samsung.com>
Wed, 23 Nov 2016 01:20:58 +0000 (10:20 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 25 Nov 2016 07:48:39 +0000 (23:48 -0800)
Change-Id: I7d9b8f148f703128619b45a29128979708d15861

include/tdm_common.h
include/tdm_types.h

index b5a9c2e..1894505 100644 (file)
@@ -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 {
index fd446cd..3cd8560 100644 (file)
@@ -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;