[media] omap3isp: Mark the resizer output video node as the default video node
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 6 Aug 2012 15:31:31 +0000 (12:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 11 Aug 2012 19:03:36 +0000 (16:03 -0300)
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>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/omap3isp/ispresizer.c

index ae17d917f77b3657ef4553e26ea039768b9bc3e3..a9bfd0afb5156df9dafd30694c2fb44585e8af04 100644 (file)
@@ -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);