ASPEED BMC IC has 2 different display engines. Please find AST2600's datasheet to get detailed information. 1. VGA on PCIe 2. SoC Display (GFX) By default, video engine (VE) will capture video from VGA. This patch adds an option to capture video from GFX with standard ioctl, vidioc_s_input. An enum, aspeed_video_input, is added for this purpose. enum aspeed_video_input { VIDEO_INPUT_VGA = 0, VIDEO_INPUT_GFX, VIDEO_INPUT_MAX }; To test this feature, you will need to enable GFX first. Please refer to ASPEED's SDK_User_Guide, 6.3.x Soc Display driver, for more information. In your application, you will need to use v4l2 ioctl, VIDIOC_S_INPUT, as below to select before start streaming. int rc; struct v4l2_input input; input.index = VIDEO_INPUT_GFX; rc = ioctl(fd, VIDIOC_S_INPUT, &input); if (rc < 0) { ... }
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -8,6 +8,13 @@ · 7 unmodified lines | |||
| 8 | 8 | ||
| 9 | #include <linux/v4l2-controls.h> | 9 | #include <linux/v4l2-controls.h> |
| 10 | 10 | ||
| 11 | /* aspeed video's input types */ | ||
| 12 | enum aspeed_video_input { | ||
| 13 | VIDEO_INPUT_VGA = 0, | ||
| 14 | VIDEO_INPUT_GFX, | ||
| 15 | VIDEO_INPUT_MAX | ||
| 16 | }; | ||
| 17 | |||
| 11 | #define V4L2_CID_ASPEED_HQ_MODE (V4L2_CID_USER_ASPEED_BASE + 1) | 18 | #define V4L2_CID_ASPEED_HQ_MODE (V4L2_CID_USER_ASPEED_BASE + 1) |
| 12 | #define V4L2_CID_ASPEED_HQ_JPEG_QUALITY (V4L2_CID_USER_ASPEED_BASE + 2) | 19 | #define V4L2_CID_ASPEED_HQ_JPEG_QUALITY (V4L2_CID_USER_ASPEED_BASE + 2) |
| 13 | 20 | ||