summaryrefslogtreecommitdiff
path: root/media.c
AgeCommit message (Collapse)Author
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 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 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-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-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-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-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-07-02Print video device node names in dot diagramsLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.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-06-14Enumerate entities using MEDIA_ENTITY_ID_FLAG_NEXTLaurent Pinchart
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>
2010-06-08strerror takes a non-negative integerLaurent Pinchart
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>
2010-06-02Print active formats when printing device topologyLaurent Pinchart
When run with the -p argument, print the active format on all subdev pads. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-05-21Add --print-dot option to print topology as a dot graphLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2010-05-19Initial importLaurent Pinchart
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>