summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-09-06libmediactl: split media_get_devname_sysfs from media_enum_entitiesAndy Shevchenko
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
2011-09-06libmediactl: restruct error pathAndy Shevchenko
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> [laurent.pinchart@ideasonboard.com: Fix return value at end of enumeration] Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-09-06Don't perform AC_FUNC_MALLOC and AC_FUNC_REALLOC when cross-compilingLaurent Pinchart
Those autoconf tests assume that the target libc doesn't have GNU-compatible malloc and realloc implementations when cross-compiling, which breaks compilation. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-06-21Allow using autoconf 2.61+Michael Jones
Autoconf v2.61 seems to work just fine. Allow it. Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
2011-06-21Add Y10, Y12 formatsMichael Jones
Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
2011-05-11Add missing 8-, 10- and 12-bit Bayer formatsLaurent Pinchart
Thanks for Javier Martin for pointing out they were missing. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-04-12Reset file descriptor value after closing a subdevTodor Tomov
After a subdev is closed set entity->fd to -1. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-04-08Update stored link flags correctly in media_setup_link()Todor Tomov
The flags stored in media_link structure are not updated correctly if media_setup_link() is called on an immutable link - the immutable flag is cleared. Fix this. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-04-08Update to the latest media kernel APILaurent Pinchart
The media kernel API has seen many changes during the review process, update the media-ctl application accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-04-08Print all links in media_print_topology_text()Todor Tomov
Add printing of inbound links in media_print_topology_text(). Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-17Update to the latest media kernel APILaurent Pinchart
The media kernel API has seen many changes during the review process, update the media-ctl application accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-02-17Rename libraries to descriptive namesTodor Tomov
Rename libraries to more descriptive names: libmedia -> libmediactl libsubdev -> libv4l2subdev Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-17Install header files to subdirTodor Tomov
Install media.h and subdev.h header files to mediactl/ subdirectory. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-17Update flags in twin link in media_setup_link()Todor Tomov
Fix media_setup_link() to update flags in twin link too. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-17Use local variable to access link's flags in media_enum_links()Todor Tomov
Local variable link is defined in media_enum_links() for more simple access to link's data. Use it when accessing link's flags. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-17Update .gitignoreTodor Tomov
Add autotools temporary files to .gitignore. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Use pkg-configTodor Tomov
Install libmedia.pc and libsubdev.pc files for use from pkg-config. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Create debian packagesTodor Tomov
Create debian packages for media-ctl application, media controller and v4l2 subdevice libraries. Set initial version 0.0.1-1. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Build libmedia and libsubdevTodor Tomov
Build media controller and v4l2 subdevice shared libraries. Use libtool for building. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Use autotoolsTodor Tomov
Use autoconf and automake for building. Quick instructions are added in INSTALL. Application source files are moved to src subdirectory. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Add v4l2_subdev_get_frame_interval()Todor Tomov
Add function to get frame interval. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Add doxygen commentsTodor Tomov
Add doxygen format comments to header files. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Shorten media structures namesTodor Tomov
Shorten structures names: struct media_entity_link => struct media_link struct media_entity_pad => struct media_pad Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Add padding to media structuresTodor Tomov
Add padding to struct media_entity_link struct media_entity_pad struct media_entity struct media_device Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Add v4l2_subdev_open() and v4l2_subdev_close() to subdev.hTodor Tomov
Add v4l2_subdev_close() function and declare both in subdev.h. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Add inbound links supportTodor Tomov
Store all inbound and outbound links in media_entity.links. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Modify media_entity_remote_pad() to return source pad onlyTodor Tomov
Rename media_entity_remote_pad() to media_entity_remote_source(). When it is called on a sink pad, return the linked source pad. When it is called on a source pad, return NULL. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Move printing functions to main.cTodor Tomov
Move printing and helper functions to media-ctl application source. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-02-07Add media_entity_type() to media.h and make it inline.Todor Tomov
Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-01-24Fix printf typosMichael Jones
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2011-01-23media-ctl: subdev: add Y8 format.Martin Hostettler
2011-01-19main.c: allow spaces in format definitionTodor Tomov
Allow spaces after '[' in format definition. Example: media-ctl -f '"OMAP3 ISP resizer":1[ UYVY 864x480]' Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-01-04media.c: fix NULL pointer dereference in media_enum_links()Todor Tomov
Do not dereference source and sink in media_enum_links() if one of them is NULL. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2011-01-04media.c: fix array overrun in media_entity_subtype_to_string()Todor Tomov
Fix overrun of static arrays node_types and subdev_types in media_entity_subtype_to_string(). Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2010-12-21Use installed kernel headers instead of in-tree headersLaurent Pinchart
To install kernel headers to usr/include inside a kernel tree, just run make headers_install. media-ctl can then be compiled by setting KDIR to the patch to the kernel tree. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-10-21Update to the latest media kernel APILaurent Pinchart
The media kernel API has seen many changes during the review process, update the media-ctl application accordingly. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-10-20Print subdev device node names in dot diagramsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-09-28main.c: Fix crop rectangle printing formatTodor Tomov
Fix crop rectangle printing format after L,T/WxH to (L,T)/WxH change. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2010-08-20Use sysfs to locate devices nodesLaurent Pinchart
Changes made during the v4l2_subdev API review renamed the /dev/subdev* device nodes to /dev/v4l-subdev*. Instead of hardcoding the names in the media-ctl application, use sysfs to retrieve the kernel device name and assume the device node name is identical. This isn't a perfect solution, we should really use libudev, but it will do for now. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-08-16Make format setting optional for -f optionTodor Tomov
This allows to setup crop rectangle or frame interval alone - without format. Signed-off-by: Todor Tomov <ttomov@mm-sol.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-08-16Change crop rectangle format from L,T/WxH to (L,T)/WxHTodor Tomov
Signed-off-by: Todor Tomov <ttomov@mm-sol.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-08-11Add a --get-format optionLaurent Pinchart
The option takes a pad name as argument and returns the active format (and optional crop settings if available) for that pad. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-08-01Configure cropping on output pads before setting the formatLaurent Pinchart
Image size on output pads depend on the cropping parameters. Cropping must be configured before setting the image size on those pads. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-07-30Be able to add more CFLAGSSergio Aguirre
This allows the gcc compilation to build with extra parameters. For example, if we want to build with -static, we just do: make CFLAGS=-static Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
2010-07-30Create initial .gitignore fileSergio Aguirre
Ignore build generated files as well as the "standard" patches subfolder used by quilt. Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
2010-07-02Print video device node names in dot diagramsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-07-01main.c: fix spaces check in parse_pad()Todor Tomov
Check for spaces before colon also when entity is numeric. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
2010-07-01Print crop rectangle when printing the topologyLaurent Pinchart
For subdev pads that support cropping, print the active crop rectangle in media_print_topology_text(). Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-07-01V4L2 subdev frame interval supportTodor Tomov
Extend the V4L2 media bus format syntax to support an optional frame interval value. If specified, the frame interval is set on the subdev. Signed-off-by: Todor Tomov <ttomov@mm-sol.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-06-29V4L2 subdev crop supportLaurent Pinchart
Extend the V4L2 media bus format syntax to support an optional crop rectangle. If specified, the crop rectangle is set on the subdev pad. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>