• Luca Risolia's avatar
    [PATCH] USB: SN9C10x driver updates · f1d390a2
    Luca Risolia authored
    SN9C10x driver updates.
    
    The most important change is the addition of the "SN9C10x" vendor-specific
    pixel format, which is used by the applications or libraries to get "raw"
    compressed data from the SN9C10x controllers. This also means that V4L2 should
    be smart enough for the decompression to be handled in userland. You can
    consider this patch as a further response to the discussion we had on the lkml
    about the submission of the PWC driver including decompression in kernelspace,
    which is present in the Alan Cox's tree.
    
    Changes: (+ new, - removed, * cleanup, @ bugfix)
    
    @ Fix VIDIOC_TRY_FMT ioctl
    @ Fix SOF/EOF problems with TAS5130D1B image sensor
    @ Fix VIDIOC_ENUM_FMT ioctl
    * Replace wait_event_interruptible() with wait_event_timeout()
    * Use msecs_to_jiffies() for timeouts in jiffies
    * Use usb_make_path() on VIDIOC_QUERYCAP for device path in the usb tree
    * read() returns buf.bytesused instead of buf.length on success
    - Remove brightness control from PAS106B and PAS202BCB, since it has no effect
      on the active pixel area (it's just for window border lines)
    + Implement VIDIOC_G_PARM and VIDIOC_S_PARM ioctl's
    + Add DAC magnitude, DAC sign, green balance and exposure controls for PAS106B
      and PAS202BCB image sensors
    + Add an additional pixel format for compressed video: V4L2_PIX_FMT_SN9C10X
    + VIDIOC_S_JPEGCOMP and VIDIOC_G_JPEGCOMP are used to set or get the current
      compression quality
    + New documentation note in "Notes for V4L2 application developers" paragraph
      about video formats and compressed data.
    + Documentation updates about the new features
    Signed-off-by: default avatarLuca Risolia <luca.risolia@studio.unibo.it>
    Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
    f1d390a2
sn9c102_core.c 61.5 KB