media-ctl.git
12 years agoEnumerate entities using MEDIA_ENTITY_ID_FLAG_NEXT
Laurent Pinchart [Mon, 14 Jun 2010 20:57:45 +0000 (22:57 +0200)]
Enumerate entities using MEDIA_ENTITY_ID_FLAG_NEXT

Entity IDs don't have to be contiguous. Use the new flag-based
enumeration system instead of looping over consecutive IDs.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12 years agostrerror takes a non-negative integer
Laurent Pinchart [Tue, 8 Jun 2010 12:27:50 +0000 (14:27 +0200)]
strerror takes a non-negative integer

Negative error codes were passed untouched to strerror which then
reported an unknown error. Use the positive error code instead.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12 years agoDon't exit with an error when called with -h
Laurent Pinchart [Thu, 3 Jun 2010 12:00:24 +0000 (14:00 +0200)]
Don't exit with an error when called with -h

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12 years agoPrint active formats when printing device topology
Laurent Pinchart [Wed, 2 Jun 2010 14:39:13 +0000 (16:39 +0200)]
Print active formats when printing device topology

When run with the -p argument, print the active format on all subdev
pads.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12 years agoAdd --print-dot option to print topology as a dot graph
Laurent Pinchart [Fri, 21 May 2010 14:38:55 +0000 (16:38 +0200)]
Add --print-dot option to print topology as a dot graph

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12 years agoDon't set formats on remote pads if the remote entity is not a subdev
Laurent Pinchart [Thu, 20 May 2010 22:45:48 +0000 (00:45 +0200)]
Don't set formats on remote pads if the remote entity is not a subdev

When setting format on an output pad, the same format is automatically
set on the remote pads, if any. As the format setting API is
subdev-specific, skip remote pads that belong to a non-subdev entity.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12 years agoZero structures before filling them
Laurent Pinchart [Wed, 19 May 2010 21:31:39 +0000 (23:31 +0200)]
Zero structures before filling them

The parse_format function fills a v4l2_mbus_framefmt structure but
doesn't zero it beforehand. This results in some fields being
uninitialized. Fix this.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12 years agoReturn -errno in functions returning a negative error code
Laurent Pinchart [Wed, 19 May 2010 21:11:34 +0000 (23:11 +0200)]
Return -errno in functions returning a negative error code

errno is a positive value, fix functions that return errno when they are
expected to return a negative error code.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
12 years agoInitial import
Laurent Pinchart [Tue, 18 May 2010 22:15:52 +0000 (00:15 +0200)]
Initial import

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