Skip to content

Commit a2bce37

Browse files
slongerbeammchehab
authored andcommitted
[media] media: Add userspace header file for i.MX
This adds a header file for use by userspace programs wanting to interact with the i.MX media driver. It defines custom events and v4l2 controls for the i.MX v4l2 subdevices. Signed-off-by: Steve Longerbeam <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent bb9e077 commit a2bce37

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

include/linux/imx-media.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Copyright (c) 2014-2017 Mentor Graphics Inc.
3+
*
4+
* This program is free software; you can redistribute it and/or modify
5+
* it under the terms of the GNU General Public License as published by the
6+
* Free Software Foundation; either version 2 of the
7+
* License, or (at your option) any later version
8+
*/
9+
10+
#ifndef __LINUX_IMX_MEDIA_H__
11+
#define __LINUX_IMX_MEDIA_H__
12+
13+
/*
14+
* events from the subdevs
15+
*/
16+
#define V4L2_EVENT_IMX_CLASS V4L2_EVENT_PRIVATE_START
17+
#define V4L2_EVENT_IMX_FRAME_INTERVAL_ERROR (V4L2_EVENT_IMX_CLASS + 1)
18+
19+
enum imx_ctrl_id {
20+
V4L2_CID_IMX_FIM_ENABLE = (V4L2_CID_USER_IMX_BASE + 0),
21+
V4L2_CID_IMX_FIM_NUM,
22+
V4L2_CID_IMX_FIM_TOLERANCE_MIN,
23+
V4L2_CID_IMX_FIM_TOLERANCE_MAX,
24+
V4L2_CID_IMX_FIM_NUM_SKIP,
25+
V4L2_CID_IMX_FIM_ICAP_EDGE,
26+
V4L2_CID_IMX_FIM_ICAP_CHANNEL,
27+
};
28+
29+
#endif

0 commit comments

Comments
 (0)