All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] media: imx: add capture support for RGB565_2X8 on parallel bus
@ 2018-05-08 14:14 Jan Luebbe
  2018-05-08 14:14 ` [PATCH v2 1/2] media: imx: capture: refactor enum_/try_fmt Jan Luebbe
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jan Luebbe @ 2018-05-08 14:14 UTC (permalink / raw)
  To: linux-media; +Cc: Jan Luebbe, slongerbeam, p.zabel, kernel

The IPU can only capture RGB565 with two 8-bit cycles in bayer/generic
mode on the parallel bus, compared to a specific mode on MIPI CSI-2.
To handle this, we extend imx_media_pixfmt with a cycles per pixel
field, which is used for generic formats on the parallel bus.

Before actually adding RGB565_2X8 support for the parallel bus, this
series simplifies handing of the the different configurations for RGB565
between parallel and MIPI CSI-2 in imx-media-capture. This avoids having
to explicitly pass on the format in the second patch.

Changes since v1:
  - fixed problems reported the kbuild test robot
  - added helper functions as suggested by Steve Longerbeam
    (is_parallel_bus and requires_passthrough)
  - removed passthough format check in csi_link_validate() (suggested by
    Philipp Zabel during internal review)

Jan Luebbe (2):
  media: imx: capture: refactor enum_/try_fmt
  media: imx: add support for RGB565_2X8 on parallel bus

 drivers/staging/media/imx/imx-media-capture.c | 38 +++++------
 drivers/staging/media/imx/imx-media-csi.c     | 68 ++++++++++++++-----
 drivers/staging/media/imx/imx-media-utils.c   |  1 +
 drivers/staging/media/imx/imx-media.h         |  2 +
 4 files changed, 73 insertions(+), 36 deletions(-)

-- 
2.17.0

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2018-05-08 23:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-08 14:14 [PATCH v2 0/2] media: imx: add capture support for RGB565_2X8 on parallel bus Jan Luebbe
2018-05-08 14:14 ` [PATCH v2 1/2] media: imx: capture: refactor enum_/try_fmt Jan Luebbe
2018-05-08 14:14 ` [PATCH v2 2/2] media: imx: add support for RGB565_2X8 on parallel bus Jan Luebbe
2018-05-08 14:25 ` [PATCH v2 0/2] media: imx: add capture " Philipp Zabel
2018-05-08 23:24   ` Steve Longerbeam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.