1. 29 Jun, 2024 13 commits
  2. 28 Jun, 2024 10 commits
  3. 27 Jun, 2024 13 commits
  4. 26 Jun, 2024 4 commits
    • Hans Verkuil's avatar
      media: vivid: fix CREATE_BUFS support in queue_setup() · 23558d80
      Hans Verkuil authored
      While queue_setup was correct for CREATE_BUFS support for
      video devices, for VBI, SDR and touch devices it was wrong.
      
      This was found after adding new v4l2-compliance tests.
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      23558d80
    • Hans Verkuil's avatar
      media: vivid: fix wrong sizeimage value for mplane · 0fd7c0c2
      Hans Verkuil authored
      In several places a division by fmt->vdownsampling[p] was
      missing in the sizeimage[p] calculation, causing incorrect
      behavior for multiplanar formats were some planes are smaller
      than the first plane.
      
      Found by new v4l2-compliance tests.
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      0fd7c0c2
    • Laurent Pinchart's avatar
      media: vimc: scaler: Use subdev active state · 7603ac5a
      Laurent Pinchart authored
      Store the active formats and crop rectangle in the subdevice active
      state. This simplifies implementation of the format and selection
      accessors, and allows using the v4l2_subdev_get_fmt() helper to
      implement the .get_fmt() operation.
      
      The active configuration that is used in the .process_frame() handler is
      still stored in the vimc_scaler_device structure. The driver could
      instead access the active state in the .process_frame() handler, but the
      required locking could interfere with the real time constraints of the
      frame processing. This data would be stored in registers in the
      .s_stream() handler for real hardware, storing it in dedicated storage
      thus mimics a real driver. To differentiate them from the rest of the
      device private data, move the corresponding fields to a sub-structure of
      vimc_scaler_device named hw.
      Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      7603ac5a
    • Laurent Pinchart's avatar
      media: vimc: debayer: Use subdev active state · 4c46cb2a
      Laurent Pinchart authored
      Store the active formats and crop rectangle in the subdevice active
      state. This simplifies implementation of the format and selection
      accessors, and allows using the v4l2_subdev_get_fmt() helper to
      implement the .get_fmt() operation.
      
      The active configuration that is used in the .process_frame() handler is
      still stored in the vimc_debayer_device structure. The driver could
      instead access the active state in the .process_frame() handler, but the
      required locking could interfere with the real time constraints of the
      frame processing. This data would be stored in registers in the
      .s_stream() handler for real hardware, storing it in dedicated storage
      thus mimics a real driver. To differentiate them from the rest of the
      device private data, move the corresponding fields to a sub-structure of
      vimc_debayer_device named hw.
      Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      4c46cb2a