[libcamera-devel] [PATCH v3 0/4] libcamera: Fix issues with vimc and Linux v5.2

Niklas Söderlund niklas.soderlund at ragnatech.se
Thu Aug 8 02:04:00 CEST 2019


Hi,

The recently release Linux v5.2 changes the vimc drivers behavior in a
way which breaks libcameras vimc pipeline and some of our tests. This
small series aims to solve this and keep libcamera functioning on both
v5.1 (and earlier) and v5.2.

Patch 1/4 is a small preparation patch. While 2/4 switches the vimc 
pipeline to use the RGB/YUV capture video node instead of a raw capture 
node. Patch 3/4 fixes issues introduced by [1] and finally 4/4 fixes an 
issue introduced by [2]. The whole series is tested on v5.1 and v5.2 on 
top of libcamera master branch and all tests pass again.

1. 85ab1aa1fac17bcd ("media: vimc: deb: fix default sink bayer format")
2. b6c61a6c37317efd ("media: vimc: propagate pixel format in the stream")

* Changes since v2
- Switch to vimc RGB/YUV capture video node.

Niklas Söderlund (4):
  libcamera: pipeline: vimc: Initialize device pointers
  libcamera: pipeline: vimc: Switch to using the RGB/YUV Capture video
    node
  tests: v4l2_videodevice: Set media bus and pixel formats for vimc
  tests: camera-sensor: Test using invalid media bus format

 src/libcamera/pipeline/vimc.cpp               | 112 ++++++++++++++++--
 test/camera-sensor.cpp                        |   3 +-
 test/camera/buffer_import.cpp                 |   8 +-
 .../v4l2_videodevice_test.cpp                 |  26 ++++
 test/v4l2_videodevice/v4l2_videodevice_test.h |   7 +-
 5 files changed, 138 insertions(+), 18 deletions(-)

-- 
2.22.0



More information about the libcamera-devel mailing list