media-controller-model.rst 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2. .. _media-controller-model:
  3. Media device model
  4. ==================
  5. Discovering a device internal topology, and configuring it at runtime,
  6. is one of the goals of the media controller API. To achieve this,
  7. hardware devices and Linux Kernel interfaces are modelled as graph
  8. objects on an oriented graph. The object types that constitute the graph
  9. are:
  10. - An **entity** is a basic media hardware or software building block.
  11. It can correspond to a large variety of logical blocks such as
  12. physical hardware devices (CMOS sensor for instance), logical
  13. hardware devices (a building block in a System-on-Chip image
  14. processing pipeline), DMA channels or physical connectors.
  15. - An **interface** is a graph representation of a Linux Kernel
  16. userspace API interface, like a device node or a sysfs file that
  17. controls one or more entities in the graph.
  18. - A **pad** is a data connection endpoint through which an entity can
  19. interact with other entities. Data (not restricted to video) produced
  20. by an entity flows from the entity's output to one or more entity
  21. inputs. Pads should not be confused with physical pins at chip
  22. boundaries.
  23. - A **data link** is a point-to-point oriented connection between two
  24. pads, either on the same entity or on different entities. Data flows
  25. from a source pad to a sink pad.
  26. - An **interface link** is a point-to-point bidirectional control
  27. connection between a Linux Kernel interface and an entity.
  28. - An **ancillary link** is a point-to-point connection denoting that two
  29. entities form a single logical unit. For example this could represent the
  30. fact that a particular camera sensor and lens controller form a single
  31. physical module, meaning this lens controller drives the lens for this
  32. camera sensor.