Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] add mux and video interface bridge entity functions

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>

authored by

Philipp Zabel and committed by
Mauro Carvalho Chehab
b45cd756 4e12ad40

+27
+21
Documentation/media/uapi/mediactl/media-types.rst
··· 299 299 received on its sink pad and outputs the statistics data on 300 300 its source pad. 301 301 302 + - .. row 29 303 + 304 + .. _MEDIA-ENT-F-VID-MUX: 305 + 306 + - ``MEDIA_ENT_F_VID_MUX`` 307 + 308 + - Video multiplexer. An entity capable of multiplexing must have at 309 + least two sink pads and one source pad, and must pass the video 310 + frame(s) received from the active sink pad to the source pad. 311 + 312 + - .. row 30 313 + 314 + .. _MEDIA-ENT-F-VID-IF-BRIDGE: 315 + 316 + - ``MEDIA_ENT_F_VID_IF_BRIDGE`` 317 + 318 + - Video interface bridge. A video interface bridge entity must have at 319 + least one sink pad and at least one source pad. It receives video 320 + frames on its sink pad from an input video bus of one type (HDMI, eDP, 321 + MIPI CSI-2, ...), and outputs them on its source pad to an output 322 + video bus of another type (eDP, MIPI CSI-2, parallel, ...). 302 323 303 324 .. tabularcolumns:: |p{5.5cm}|p{12.0cm}| 304 325
+6
include/uapi/linux/media.h
··· 105 105 #define MEDIA_ENT_F_PROC_VIDEO_STATISTICS (MEDIA_ENT_F_BASE + 0x4006) 106 106 107 107 /* 108 + * Switch and bridge entitites 109 + */ 110 + #define MEDIA_ENT_F_VID_MUX (MEDIA_ENT_F_BASE + 0x5001) 111 + #define MEDIA_ENT_F_VID_IF_BRIDGE (MEDIA_ENT_F_BASE + 0x5002) 112 + 113 + /* 108 114 * Connectors 109 115 */ 110 116 /* It is a responsibility of the entity drivers to add connectors and links */