]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] add mux and video interface bridge entity functions
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 7 Jun 2017 18:33:54 +0000 (15:33 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 20 Jun 2017 10:18:01 +0000 (07:18 -0300)
Add two new media entity function definitions for video multiplexers
and video interface bridges.

- renamed MEDIA_ENT_F_MUX to MEDIA_ENT_F_VID_MUX

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Steve Longerbeam <steve_longerbeam@mentor.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Documentation/media/uapi/mediactl/media-types.rst
include/uapi/linux/media.h

index 2a5164aea2b404b807033fd07bc5a6e896cac36c..71078565d6444d5a7faa57ef93d6d6af0eb1bcd7 100644 (file)
@@ -299,6 +299,27 @@ Types and flags used to represent the media graph elements
          received on its sink pad and outputs the statistics data on
          its source pad.
 
+    -  ..  row 29
+
+       ..  _MEDIA-ENT-F-VID-MUX:
+
+       -  ``MEDIA_ENT_F_VID_MUX``
+
+       - Video multiplexer. An entity capable of multiplexing must have at
+         least two sink pads and one source pad, and must pass the video
+         frame(s) received from the active sink pad to the source pad.
+
+    -  ..  row 30
+
+       ..  _MEDIA-ENT-F-VID-IF-BRIDGE:
+
+       -  ``MEDIA_ENT_F_VID_IF_BRIDGE``
+
+       - Video interface bridge. A video interface bridge entity must have at
+         least one sink pad and at least one source pad. It receives video
+         frames on its sink pad from an input video bus of one type (HDMI, eDP,
+         MIPI CSI-2, ...), and outputs them on its source pad to an output
+         video bus of another type (eDP, MIPI CSI-2, parallel, ...).
 
 ..  tabularcolumns:: |p{5.5cm}|p{12.0cm}|
 
index 4890787731b85549466012305d196fb501cf92a5..fac96c64fe513b3e17dff640cfa516683e91e553 100644 (file)
@@ -104,6 +104,12 @@ struct media_device_info {
 #define MEDIA_ENT_F_PROC_VIDEO_SCALER          (MEDIA_ENT_F_BASE + 0x4005)
 #define MEDIA_ENT_F_PROC_VIDEO_STATISTICS      (MEDIA_ENT_F_BASE + 0x4006)
 
+/*
+ * Switch and bridge entitites
+ */
+#define MEDIA_ENT_F_VID_MUX                    (MEDIA_ENT_F_BASE + 0x5001)
+#define MEDIA_ENT_F_VID_IF_BRIDGE              (MEDIA_ENT_F_BASE + 0x5002)
+
 /*
  * Connectors
  */