1. 26 Feb, 2023 1 commit
    • Hans Verkuil's avatar
      media: v4l2-subdev.c: clear stream field · 68e87ebf
      Hans Verkuil authored
      Both userspace and kernelspace can pass structs with an uninitialized
      'stream' field. Since the check_state() function checks for a non-zero
      stream field, suddenly these calls will fails with -EINVAL.
      
      So check in the wrapper functions in v4l2-subdev.c (which are used by both
      the kernel and userspace API) if V4L2_SUBDEV_FL_STREAMS is set, and if not,
      then zero the stream field.
      
      Currently no drivers set V4L2_SUBDEV_FL_STREAMS, so the stream field will
      always be set to 0.
      
      This patch might well be reverted in the future when streams support is
      fully enabled and we finalized the userspace API support for this feature.
      Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
      Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      68e87ebf
  2. 15 Feb, 2023 1 commit
    • Mauro Carvalho Chehab's avatar
      Merge git://git.linuxtv.org/media_stage into media_tree · 83e0f265
      Mauro Carvalho Chehab authored
      * git://git.linuxtv.org/media_stage: (216 commits)
        media: v4l2-ctrls-api.c: move ctrl->is_new = 1 to the correct line
        media: Revert "media: saa7146: deprecate hexium_gemini/orion, mxb and ttpci"
        media: Revert "media: av7110: move to staging/media/deprecated/saa7146"
        media: imx-pxp: convert to regmap
        media: imx-pxp: Use non-threaded IRQ
        media: imx-pxp: Introduce pxp_read() and pxp_write() wrappers
        media: imx-pxp: Implement frame size enumeration
        media: imx-pxp: Pass pixel format value to find_format()
        media: imx-pxp: Add media controller support
        media: imx-pxp: Don't set bus_info manually in .querycap()
        media: imx-pxp: Sort headers alphabetically
        media: imx-pxp: add support for i.MX7D
        media: imx-pxp: make data_path_ctrl0 platform dependent
        media: imx-pxp: disable LUT block
        media: imx-pxp: explicitly disable unused blocks
        media: imx-pxp: extract helper function to setup data path
        media: imx-pxp: detect PXP version
        media: dt-bindings: media: fsl-pxp: convert to yaml
        media: imx-mipi-csis: Implement .init_cfg() using .set_fmt()
        media: imx-mipi-csis: Use V4L2 subdev active state
        ...
      Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
      83e0f265
  3. 09 Feb, 2023 3 commits
  4. 08 Feb, 2023 35 commits