Skip to content

OMAP_VOUT: Allow omap_vout to build without VRFB

Archit Taneja linux-media 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- add a patch to make rotation related functions names more descriptive.
- remove unnecessary externs, add static to some local functions.
- improve patch description.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3OMAP_VOUT: CLEANUP: Move generic functions and macros to common filesdrivers/media/video/omap/omap_vout.c drivers/media/video/omap/omap_voutdef.h drivers/media/video/omap/omap_voutlib.c +1 more+119 -1180 replies
2/3OMAP_VOUT: CLEANUP: Make rotation related helper functions more descriptivedrivers/media/video/omap/omap_vout.c drivers/media/video/omap/omap_voutdef.h+15 -150 replies
3/3OMAP_VOUT: Create separate file for VRFB related API'sdrivers/media/video/omap/Kconfig drivers/media/video/omap/Makefile drivers/media/video/omap/omap_vout.c +3 more+537 -3720 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] OMAP_VOUT: Allow omap_vout to build without VRFB

Introduce omap_vout_vrfb.c and omap_vout_vrfb.h, for all VRFB related API's, making OMAP_VOUT driver independent from VRFB. This is required for OMAP4 DSS, since OMAP4 doesn't have VRFB block.

A new enum called vout_rotation_type is introduced to differentiate between no rotation and vrfb rotation. A member rotation_type is introduced in omapvideo_info, this allows to call vrfb specific functions only if the rotation type is VOUT_ROT_VRFB. When the rotation_type is set to VOUT_ROT_NONE, the S_CTRL ioctl prevents the user setting a non zero rotation or non zero mirror value.

Changes since v1:
- add a patch to make rotation related functions names more descriptive.
- remove unnecessary externs, add static to some local functions.
- improve patch description.

Archit Taneja (3):
OMAP_VOUT: CLEANUP: Move generic functions and macros to common files
OMAP_VOUT: CLEANUP: Make rotation related helper functions more
descriptive
OMAP_VOUT: Create separate file for VRFB related API's

 drivers/media/video/omap/Kconfig          |    7 +-
 drivers/media/video/omap/Makefile         |    1 +
 drivers/media/video/omap/omap_vout.c      |  582 +++++------------------------
 drivers/media/video/omap/omap_vout_vrfb.c |  390 +++++++++++++++++++
 drivers/media/video/omap/omap_vout_vrfb.h |   40 ++
 drivers/media/video/omap/omap_voutdef.h   |   78 ++++
 drivers/media/video/omap/omap_voutlib.c   |   46 +++
 drivers/media/video/omap/omap_voutlib.h   |   12 +-
 8 files changed, 661 insertions(+), 495 deletions(-)
 create mode 100644 drivers/media/video/omap/omap_vout_vrfb.c
 create mode 100644 drivers/media/video/omap/omap_vout_vrfb.h