[PATCH] omap3isp: Mark the resizer output video node as the default video node

Subsystems: media input infrastructure (v4l/dvb), the rest

STALE5176d

2 messages, 2 authors, 2012-08-08 · open the first message on its own page

[PATCH] omap3isp: Mark the resizer output video node as the default video node

From: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Date: 2012-08-08 15:30:48

The resizer can output YUYV and UYVY in a wide range of sizes, making it
the best video node for regular V4L2 applications.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
 drivers/media/video/omap3isp/ispresizer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/media/video/omap3isp/ispresizer.c b/drivers/media/video/omap3isp/ispresizer.c
index ae17d91..a9bfd0a 100644
--- a/drivers/media/video/omap3isp/ispresizer.c
+++ b/drivers/media/video/omap3isp/ispresizer.c
@@ -1730,6 +1730,8 @@ static int resizer_init_entities(struct isp_res_device *res)
 	if (ret < 0)
 		goto error_video_out;
 
+	res->video_out.video.entity.flags |= MEDIA_ENT_FL_DEFAULT;
+
 	/* Connect the video nodes to the resizer subdev. */
 	ret = media_entity_create_link(&res->video_in.video.entity, 0,
 			&res->subdev.entity, RESZ_PAD_SINK, 0);
-- 
Regards,

Laurent Pinchart

Re: [PATCH] omap3isp: Mark the resizer output video node as the default video node

From: Sakari Ailus <sakari.ailus@iki.fi>
Date: 2012-08-08 15:38:24

On Wed, Aug 08, 2012 at 05:30:57PM +0200, Laurent Pinchart wrote:
The resizer can output YUYV and UYVY in a wide range of sizes, making it
the best video node for regular V4L2 applications.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Thanks!

Acked-by: Sakari Ailus <sakari.ailus@iki.fi>

-- 
Sakari Ailus
e-mail: sakari.ailus@iki.fi	jabber/XMPP/Gmail: sailus@retiisi.org.uk
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help