#include <exynos_drm.h>
#include <libdrm/drm.h>
#include <linux/v4l2-subdev.h>
+#include <linux/videodev2_exynos_camera.h>
#include <linux/fimc-is-metadata.h>
#include <stdbool.h>
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-/* Extended CID */
-#ifndef V4L2_CID_FIMC_IS_BASE
-#define V4L2_CID_FIMC_IS_BASE (V4L2_CTRL_CLASS_CAMERA | 0x1000)
-#endif
-#ifndef V4L2_CID_IS_S_STREAM
-#define V4L2_CID_IS_S_STREAM (V4L2_CID_FIMC_IS_BASE + 14)
-#endif
-#ifndef V4L2_CID_IS_FORCE_DONE
-#define V4L2_CID_IS_FORCE_DONE (V4L2_CID_FIMC_IS_BASE + 50)
-#endif
-#ifndef V4L2_CID_IS_SET_SETFILE
-#define V4L2_CID_IS_SET_SETFILE (V4L2_CID_FIMC_IS_BASE + 51)
-#endif
-#ifndef V4L2_CID_IS_S_BNS
-#define V4L2_CID_IS_S_BNS (V4L2_CID_FIMC_IS_BASE + 52)
-#endif
-#ifndef V4L2_CID_IS_COLOR_RANGE
-#define V4L2_CID_IS_COLOR_RANGE (V4L2_CID_FIMC_IS_BASE + 54)
-#endif
-#ifndef V4L2_CID_IS_MIN_TARGET_FPS
-#define V4L2_CID_IS_MIN_TARGET_FPS (V4L2_CID_FIMC_IS_BASE + 55)
-#endif
-#ifndef V4L2_CID_IS_MAX_TARGET_FPS
-#define V4L2_CID_IS_MAX_TARGET_FPS (V4L2_CID_FIMC_IS_BASE + 56)
-#endif
-
/* FIMC IS NUM */
#define FIMC_IS_VIDEO_3A0_NUM 10
#define FIMC_IS_VIDEO_3A0P_NUM 12