21 Oct, 2015

10 commits

  • Move v4l2-specific stuff from videobu2-core to videobuf2-v4l2
    without doing any functional changes.

    Signed-off-by: Junghak Sung
    Signed-off-by: Geunyoung Kim
    Acked-by: Seung-Woo Kim
    Acked-by: Inki Dae
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Junghak Sung
     
  • Prepare to divide videobuf2
    - Separate vb2 trace events from v4l2 trace event.
    - Make wrapper functions that will move to v4l2-side.
    - Make vb2_core_* functions that will remain in core-side.
    - Add a callback function table for buffer operation which makes vb2-core
    to be able to invoke a v4l2-side functions.
    - Rename internal functions as vb2_*.

    Signed-off-by: Junghak Sung
    Signed-off-by: Geunyoung Kim
    Acked-by: Seung-Woo Kim
    Acked-by: Inki Dae
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Junghak Sung
     
  • Simple changes that replace v4l2-specific data with vb2 data
    in videobuf2-core.

    enum v4l2_buf_type --> int
    enum v4l2_memory --> enum vb2_memory
    VIDEO_MAX_FRAME --> VB2_MAX_FRAME
    VIDEO_MAX_PLANES --> VB2_MAX_PLANES
    struct v4l2_fh *owner --> void *owner
    V4L2_TYPE_IS_MULTIPLANAR() --> is_multiplanar
    V4L2_TYPE_IS_OUTPUT() --> is_output

    Signed-off-by: Junghak Sung
    Signed-off-by: Geunyoung Kim
    Acked-by: Seung-Woo Kim
    Acked-by: Inki Dae
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Junghak Sung
     
  • Replace struct v4l2_format * with void * to make queue_setup()
    for common use.
    And then, modify all device drivers related with this change.

    Signed-off-by: Junghak Sung
    Signed-off-by: Geunyoung Kim
    Acked-by: Seung-Woo Kim
    Acked-by: Inki Dae
    Signed-off-by: Hans Verkuil
    [hans.verkuil@cisco.com: fix missing const in fimc-lite.c]

    Signed-off-by: Mauro Carvalho Chehab

    Junghak Sung
     
  • MFC driver never delivered EOS event to apps feeding constantly its capture
    buffer with fresh buffers. The patch fixes it by marking last buffers
    returned by MFC with MFC_BUF_FLAG_EOS flag and firing EOS event on
    de-queuing such buffers.

    Signed-off-by: Andrzej Hajda
    Signed-off-by: Kamil Debski
    Signed-off-by: Mauro Carvalho Chehab

    Andrzej Hajda
     
  • MFC encoder supports end-of-stream handling for encoder
    in version 5 of hardware. This patch adds it also for newer version.
    It was successfully tested on MFC-v8.

    Signed-off-by: Andrzej Hajda
    Signed-off-by: Kamil Debski
    Signed-off-by: Mauro Carvalho Chehab

    Andrzej Hajda
     
  • This patch fixes spelling errors in mfc encoder.
    inavild -> invaild

    Signed-off-by: Ingi Kim
    Signed-off-by: Kamil Debski
    Signed-off-by: Mauro Carvalho Chehab

    Ingi Kim
     
  • In videobuf2 dma-sg memory types the prepare and finish ops, instead
    of passing the number of entries in the original scatterlist as the
    "nents" parameter to dma_sync_sg_for_device() and dma_sync_sg_for_cpu(),
    the value returned by dma_map_sg() was used. Albeit this has been
    suggested in comments of some implementations (which have since been
    corrected), this is wrong.

    Fixes: d790b7eda953 ("vb2-dma-sg: move dma_(un)map_sg here")

    Cc: stable@vger.kernel.org # for v3.19 and up
    Signed-off-by: Tiffany Lin
    Signed-off-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Tiffany Lin
     
  • In videobuf2 dma-contig memory type the prepare and finish ops, instead of
    passing the number of entries in the original scatterlist as the "nents"
    parameter to dma_sync_sg_for_device() and dma_sync_sg_for_cpu(), the value
    returned by dma_map_sg() was used. Albeit this has been suggested in
    comments of some implementations (which have since been corrected), this
    is wrong.

    Fixes: 199d101efdba ("v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator")

    Cc: stable@vger.kernel.org # for v3.8 and up
    Signed-off-by: Tiffany Lin
    Signed-off-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Tiffany Lin
     
  • The I2C core always reports the MODALIAS uevent as "i2c:
    Signed-off-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Javier Martinez Canillas
     

10 Oct, 2015

10 commits


08 Oct, 2015

1 commit


07 Oct, 2015

7 commits

  • This enum is not actually used anymore. The only value used from
    the enum is DMX_OK, passed as a parameter on two callbacks.

    Yet, this value is not used anywhere. So, just remove it.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • There are two callbacks still not documented:
    .//drivers/media/dvb-core/demux.h:422: warning: No description found for parameter 'get_pes_pids'
    .//drivers/media/dvb-core/demux.h:422: warning: No description found for parameter 'get_stc'

    The purpose of first one is clear. The second one is used only
    on the obsolete av7110 driver, and its purpose is not clear,
    as it just returns a 64-bit word from the firmware to userspace.

    Let's document get_pes_pids and mark get_stc as private, adding
    a comment to not use it, while this is not documented.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • There are two DVB demux callbacks and ioctls that aren't documented
    and aren't used at all by the DVB core or by any DVB driver upstream.

    Let's comment out the code for those two ioctls and remove on some
    future version.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • There are a few inconsistencies between the old documentation
    that got imported into the header and the current status.

    Update them, and use the proper doc-nano nomenclature for
    struct artuments "@", instead of foo().

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • The DocBook/media/dvb/kdapi.xml contains the description of
    the kABI for DVB. The problem is that, by being maintained
    on a separate file and not being updated for years, it got
    outdated. So, for example, some callback parameters were
    changed, but the DocBook were still using the old stuff.

    As a first step to fix it, let's move the documentation of
    struct dmx_demux into demux.h and fix the parameters used
    there.

    For now, don't document any other field nor touch the
    descriptions that got moved, letting this job to other
    patches. That makes easier to review the patch.

    PS.: Please notice that an additional patch will be needed
    in order to fix the return values (some uses non-existent
    return codes) and to the functions and callbacks mentioned at
    the descriptions.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • There are several CodingStyle violations at the DVB code. While
    we won't be fixing them as a hole, let's fix at least the
    headers, as we're touching on them already in order to properly
    document them.

    No functional changes.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     
  • This struct is already documented at the header file, but it is
    not using Kernel doc-nano format. Convert to it.

    Signed-off-by: Mauro Carvalho Chehab

    Mauro Carvalho Chehab
     

06 Oct, 2015

3 commits


05 Oct, 2015

6 commits


03 Oct, 2015

3 commits