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 b5a9c2e249146231e8cabafa0e69fbeda340c892..1894505c920bebf171b277918c2bc649406ca057 100644 (file)
@@ -147,6 +147,14 @@ typedef enum {
        TDM_CAPTURE_CAPABILITY_TRANSFORM = (1 << 5), /**< The capture device supports transform operation */
 } 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
  */
index fd446cdf696bb598a906835c48d878f06791fb75..3cd85609fe03628d717946dade27d88f03e21a97 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;