Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] media: rockchip: rkcif: ENUM_FMT and bytesperline fixes
@ 2026-11-18 20:31 Faizel K B
  2026-11-18 20:31 ` [PATCH v2 1/2] media: rockchip: rkcif: Filter enumerated formats by media bus code Faizel K B
  2026-11-18 20:31 ` [PATCH v2 2/2] media: rockchip: rkcif: Honour the requested bytesperline Faizel K B
  0 siblings, 2 replies; 3+ messages in thread
From: Faizel K B @ 2026-11-18 20:31 UTC (permalink / raw)
  To: Mehdi Djait, Michael Riesch
  Cc: Mauro Carvalho Chehab, Heiko Stuebner, linux-media,
	linux-rockchip, linux-arm-kernel, linux-kernel, libcamera-devel,
	Robert Mader, Faizel K B

Two fixes for rkcif capture.

Patch 1 filters VIDIOC_ENUM_FMT by the media bus code, as the video
devices set V4L2_CAP_IO_MC.

Patch 2 aligns bytesperline to 8 bytes and honours a larger value
requested by userspace, so DMA-BUF importers that need a larger stride
alignment can use the buffers directly.

Tested on RK3588 (Radxa ROCK 5B+) with an IMX415 sensor, using libcamera
with the GPU software ISP. The DVP part is compile-tested only.

Changes in v2:
- Patch 1: don't filter the DVP output formats, which have no media bus
  code (Mehdi)
- Patch 2: handle all planes and the DVP interface, and limit the stride
  to the line width register of each interface (Michael)
- Patch 2: drop "on MIPI" from the subject

v1: https://lore.kernel.org/linux-media/20261105232310.385463-1-faizel.kb@gmail.com

Faizel K B (2):
  media: rockchip: rkcif: Filter enumerated formats by media bus code
  media: rockchip: rkcif: Honour the requested bytesperline

 .../rockchip/rkcif/rkcif-capture-dvp.c        |  4 ++
 .../rockchip/rkcif/rkcif-capture-mipi.c       |  3 +
 .../platform/rockchip/rkcif/rkcif-common.h    |  1 +
 .../platform/rockchip/rkcif/rkcif-stream.c    | 66 +++++++++++++++++--
 4 files changed, 68 insertions(+), 6 deletions(-)

base-commit: 7969a6f407cf55b5254c824c87875452655ef11e
-- 
2.43.0



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

end of thread, other threads:[~2026-11-18 20:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-18 20:31 [PATCH v2 0/2] media: rockchip: rkcif: ENUM_FMT and bytesperline fixes Faizel K B
2026-11-18 20:31 ` [PATCH v2 1/2] media: rockchip: rkcif: Filter enumerated formats by media bus code Faizel K B
2026-11-18 20:31 ` [PATCH v2 2/2] media: rockchip: rkcif: Honour the requested bytesperline Faizel K B

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox