19 Oct, 2012

1 commit

  • Pull media fixes from Mauro Carvalho Chehab:
    "Media fixes for:
    - one Kconfig fix patch;
    - one patch fixing DocBook breakage due to the drivers/media UAPI
    changes;
    - the remaining UAPI media changes (DVB API).

    I'm aware that is is a little late for the UAPI renames for the DVB
    API, but IMHO, it is better to merge it for 3.7, due to two reasons:

    1) There is a major rename at 3.7 (not only uapi changes, but also
    the entire media drivers were reorganized on 3.7, in order to
    simplify the Kconfig logic, and easy drivers selection, especially
    for hybrid devices). By confining all those renames there at 3.7
    it will cause all the harm at for media developers on just one
    shot. Stable backports upstream and at distros will likely
    welcome it as well, as they won't need to check what changed on
    3.7 and what was postponed for on 3.8.

    2) The V4L2 DocBook Makefile creates a cross-reference between the
    media API headers and the specs. This helps us _a_lot_ to be sure
    that all API improvements are properly documented. Every time a
    header changes from one place to another, DocBook/media/Makefile
    needs to be patched. Currently, the DocBook breakage patch
    depends on the DVB UAPI."

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    [media] Kconfig: Fix dependencies for driver autoselect options
    DocBook/media/Makefile: Fix build due to uapi breakage
    UAPI: (Scripted) Disintegrate include/linux/dvb

    Linus Torvalds
     

17 Oct, 2012

1 commit


15 Oct, 2012

1 commit


12 Oct, 2012

2 commits

  • Pull second set of media updates from Mauro Carvalho Chehab:
    "Despite its size, most of the stuff here is trivial. This series
    contains:

    - s5p-mfc: additions at the driver and at the core to support H.264
    hardware codec;
    - Some improvements at s5p and davinci embedded drivers;
    - Some V4L2 compliance fixes applied on a few drivers;
    - Several random trivial patches, including several fixes and a few
    new board support additions;

    Notes:

    1) Some Exynos media patches were dependent on some -arm fixes that
    got merged on changeset 782cd9e. That's why this pull request is
    based that changeset.

    2) As promised, I reviewed the pending VB2 DMABUF series.

    While setting a test environment, it was noticed that the upstream
    support for Samsung Exynos 4 boards (smdk310 and Origen) are
    broken upstream, likely due to regressions: both defconfigs are
    wrong and regulator settings for both boards are broken. That,
    allied with some bug at the dummy regulator driver, causes OOPSes
    during boot time.

    Long story short: even fixing the above, the proposed patches
    OOPSed when running the DMABUF test. Not sure yet if the OOPSes
    are due to some other undetected regressions, or due to some bug
    on the patches.

    Due to the above, DMABUF patches for vb2 got NACKed for 3.7."

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (109 commits)
    [media] m5mols: Add missing #include
    [media] stk1160: Add support for S-Video input
    Revert "[media] omap3isp: Replace cpu_is_omap3630() with ISP revision check"
    [media] dvb: LNA implementation changes
    [media] v4l2-ioctl: fix W=1 warnings
    [media] v4l2-ioctl: add blocks check for VIDIOC_SUBDEV_G/S_EDID
    [media] omap3isp: Fix compilation error in ispreg.h
    [media] rc-msi-digivox-ii: Add full scan keycodes
    [media] cx25821: testing the wrong variable
    [media] tda18271-common: hold the I2C adapter during write transfers
    [media] ds3000: add module parameter to force firmware upload
    [media] drivers/media: Remove unnecessary semicolon
    [media] winbond: remove space from driver name
    [media] iguanair: cannot send data from the stack
    [media] omap3isp: Replace cpu_is_omap3630() with ISP revision check
    [media] dvb-usb: print small buffers via %*ph
    [media] uvc: Add return code check at vb2_queue_init()
    [media] em28xx: Replace memcpy with struct assignment
    [media] bt8xx: Add video4linux control V4L2_CID_COLOR_KILLER
    [media] mem2mem_testdev: Use devm_kzalloc() in probe
    ...

    Conflicts:
    arch/arm/mach-davinci/include/mach/da8xx.h

    Linus Torvalds
     
  • Applied on the top of changeset 782cd9e, as some of those patches
    depend on some fixes that went via -arm tree.

    * staging/for_v3.7: (109 commits)
    [media] m5mols: Add missing #include
    [media] stk1160: Add support for S-Video input
    Revert "[media] omap3isp: Replace cpu_is_omap3630() with ISP revision check"
    [media] dvb: LNA implementation changes
    [media] v4l2-ioctl: fix W=1 warnings
    [media] v4l2-ioctl: add blocks check for VIDIOC_SUBDEV_G/S_EDID
    [media] omap3isp: Fix compilation error in ispreg.h
    [media] rc-msi-digivox-ii: Add full scan keycodes
    [media] cx25821: testing the wrong variable
    [media] tda18271-common: hold the I2C adapter during write transfers
    [media] ds3000: add module parameter to force firmware upload
    [media] drivers/media: Remove unnecessary semicolon
    [media] winbond: remove space from driver name
    [media] iguanair: cannot send data from the stack
    [media] omap3isp: Replace cpu_is_omap3630() with ISP revision check
    [media] dvb-usb: print small buffers via %*ph
    [media] uvc: Add return code check at vb2_queue_init()
    [media] em28xx: Replace memcpy with struct assignment
    [media] bt8xx: Add video4linux control V4L2_CID_COLOR_KILLER
    [media] mem2mem_testdev: Use devm_kzalloc() in probe
    ...

    Mauro Carvalho Chehab
     

09 Oct, 2012

1 commit


07 Oct, 2012

1 commit

  • Pull media updates from Mauro Carvalho Chehab:
    "The first part of the media updates for Kernel 3.7.

    This series contain:

    - A major tree renaming patch series: now, drivers are organized
    internally by their used bus, instead of by V4L2 and/or DVB API,
    providing a cleaner driver location for hybrid drivers that
    implement both APIs, and allowing to cleanup the Kconfig items and
    make them more intuitive for the end user;

    - Media Kernel developers are typically very lazy with their duties
    of keeping the MAINTAINERS entries for their drivers updated. As
    now the tree is more organized, we're doing an effort to add/update
    those entries for the drivers that aren't currently orphan;

    - Several DVB USB drivers got moved to a new DVB USB v2 core; the new
    core fixes several bugs (as the existing one that got bitroted).
    Now, suspend/resume finally started to work fine (at least with
    some devices - we should expect more work with regards to it);

    - added multistream support for DVB-T2, and unified the API for
    DVB-S2 and ISDB-S. Backward binary support is preserved;

    - as usual, a few new drivers, some V4L2 core improvements and lots
    of drivers improvements and fixes.

    There are some points to notice on this series:

    1) you should expect a trivial merge conflict on your tree, with the
    removal of Documentation/feature-removal-schedule.txt: this series
    would be adding two additional entries there. I opted to not
    rebase it due to this recent change;

    2) With regards to the PCTV 520e udev-related breakage, I opted to
    fix it in a way that the patches can be backported to 3.5 even
    without your firmware fix patch. This way, Greg doesn't need to
    rush backporting your patch (as there are still the firmware cache
    and firmware path customization issues to be addressed there).

    I'll send later a patch (likely after the end of the merge window)
    reverting the rest of the DRX-K async firmware request, fully
    restoring its original behaviour to allow media drivers to
    initialize everything serialized as before for 3.7 and upper.

    3) I'm planning to work on this weekend to test the DMABUF patches
    for V4L2. The patches are on my queue for several Kernel cycles,
    but, up to now, there is/was no way to test the series locally.

    I have some concerns about this particular changeset with regards
    to security issues, and with regards to the replacement of the old
    VIDIOC_OVERLAY ioctl's that is broken on modern systems, due to
    GPU drivers change. The Overlay API allows direct PCI2PCI
    transfers from a media capture card into the GPU framebuffer, but
    its API is crappy. Also, the only existing X11 driver that
    implements it requires a XV extension that is not available
    anymore on modern drivers. The DMABUF can do the same thing, but
    with it is promising to be a properly-designed API. If I can
    successfully test this series and be happy with it, I should be
    asking you to pull them next week."

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (717 commits)
    em28xx: regression fix: use DRX-K sync firmware requests on em28xx
    drxk: allow loading firmware synchrousnously
    em28xx: Make all em28xx extensions to be initialized asynchronously
    [media] tda18271: properly report read errors in tda18271_get_id
    [media] tda18271: delay IR & RF calibration until init() if delay_cal is set
    [media] MAINTAINERS: add Michael Krufky as tda827x maintainer
    [media] MAINTAINERS: add Michael Krufky as tda8290 maintainer
    [media] MAINTAINERS: add Michael Krufky as cxusb maintainer
    [media] MAINTAINERS: add Michael Krufky as lg2160 maintainer
    [media] MAINTAINERS: add Michael Krufky as lgdt3305 maintainer
    [media] MAINTAINERS: add Michael Krufky as mxl111sf maintainer
    [media] MAINTAINERS: add Michael Krufky as mxl5007t maintainer
    [media] MAINTAINERS: add Michael Krufky as tda18271 maintainer
    [media] s5p-tv: Report only multi-plane capabilities in vidioc_querycap
    [media] s5p-mfc: Fix misplaced return statement in s5p_mfc_suspend()
    [media] exynos-gsc: Add missing static storage class specifiers
    [media] exynos-gsc: Remove header file inclusion
    [media] s5p-fimc: Fix incorrect condition in fimc_lite_reqbufs()
    [media] s5p-tv: Fix potential NULL pointer dereference error
    [media] s5k6aa: Fix possible NULL pointer dereference
    ...

    Linus Torvalds
     

06 Oct, 2012

6 commits

  • New controls are added for supporting H264 encoding features like:
    - MVC frame packing,
    - flexible macroblock ordering,
    - arbitrary slice ordering,
    - hierarchical coding.

    Signed-off-by: Jeongtae Park
    Signed-off-by: Naveen Krishna Chatradhi
    Signed-off-by: Arun Kumar K
    Acked-by: Kamil Debski
    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Mauro Carvalho Chehab

    Arun Kumar K
     
  • Add the following new fourcc definitions, for multiplanar YCbCr:
    V4L2_PIX_FMT_NV21M, V4L2_PIX_FMT_NV12MT_16X16 and compressed formats:
    V4L2_PIX_FMT_H264_MVC, V4L2_PIX_FMT_VP8.

    Signed-off-by: Jeongtae Park
    Signed-off-by: Naveen Krishna Chatradhi
    Signed-off-by: Arun Kumar K
    Acked-by: Kamil Debski
    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Mauro Carvalho Chehab

    Arun Kumar K
     
  • Clarify the behavior of v4l2_buffer in the multiplanar case,
    including fixing a false statement: you can't set m.planes to NULL
    when calling DQBUF.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • add V4L2_CID_TEST_PATTERN of type menu, which determines
    the internal test pattern selected by the device.

    Signed-off-by: Lad, Prabhakar
    Signed-off-by: Manjunath Hadli
    Acked-by: Sakari Ailus
    Acked-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Lad, Prabhakar
     
  • This patch adds definition of the Samsung S5C73M3 camera specific
    image format. V4L2_PIX_FMT_S5C_UYVY_JPG is a two-planar format,
    the first plane contains interleaved UYVY and JPEG data followed
    by meta-data. The second plane contains additional meta-data needed
    for extracting JPEG and UYVY data stream from the first plane.

    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Kyungmin Park
    Signed-off-by: Mauro Carvalho Chehab

    Sylwester Nawrocki
     
  • This patch adds media bus pixel code for the interleaved JPEG/UYVY
    image format used by S5C73MX Samsung cameras. This interleaved image
    data is transferred on MIPI-CSI2 bus as User Defined Byte-based Data.
    It also defines an experimental vendor and device specific media bus
    formats section and adds related DocBook documentation.

    Signed-off-by: Sylwester Nawrocki
    Signed-off-by: Kyungmin Park
    Signed-off-by: Mauro Carvalho Chehab

    Sylwester Nawrocki
     

28 Sep, 2012

1 commit


27 Sep, 2012

3 commits


26 Sep, 2012

10 commits

  • While the documentation says that VIDIOC_CROPCAP is compulsory for
    all video capture and output devices, in practice VIDIOC_CROPCAP is
    only implemented for devices that can do cropping and/or scaling.
    Update the documentation to no longer require VIDIOC_CROPCAP if the
    driver does not support cropping or scaling or non-square pixels.

    Signed-off-by: Hans Verkuil
    Reviewed-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • It was not entirely obvious that the sequence count should also
    be set for output devices. Also made it more explicit that this
    sequence counter counts frames, not fields.

    Signed-off-by: Hans Verkuil
    Reviewed-by: Sylwester Nawrocki
    Acked-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The Video Standard section contains some awkward language. It also wasn't
    updated when the error code for unimplemented ioctls changed from EINVAL
    to ENOTTY.

    [mchehab@redhat.com: remove a misplaced footnote tag]
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • The 'custom' timings are no longer just for custom timings, but also for standard
    CEA/VESA timings. So rename to V4L2_IN/OUT_CAP_DV_TIMINGS.
    The old define is still kept for backwards compatibility.
    This decision was taken during the 2012 Media Workshop.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • ENODATA should be returned if the API used for getting, changing, querying
    or enumerating the current video timings is not supported by the current input
    or output.
    This was decided during the 2012 Media Workshop.

    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • As per decision taken during the 2012 Media Workshop.

    Signed-off-by: Hans Verkuil
    Acked-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • During the 2012 Media Workshop it was decided that bus_info as returned
    by VIDIOC_QUERYCAP can no longer be empty. It should be a unique identifier,
    and empty strings are obviously not unique.

    Signed-off-by: Hans Verkuil
    Reviewed-by: Sylwester Nawrocki
    Reviewed-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • - S/TRY_FMT should always succeed, unless an invalid type field is passed in.
    - TRY_FMT should give the same result as S_FMT, all other things being equal.
    - ENUMFMT may return different formats for different inputs or outputs.
    This was decided during the 2012 Media Workshop.

    Signed-off-by: Hans Verkuil
    Reviewed-by: Sylwester Nawrocki
    Acked-by: Laurent Pinchart
    Acked-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Specify that STREAMON/OFF should return 0 if the stream is already
    started/stopped.
    The spec never specified what the correct behavior is. This ambiguity
    was resolved during the 2012 Media Workshop.

    Signed-off-by: Hans Verkuil
    Reviewed-by: Sylwester Nawrocki
    Acked-by: Laurent Pinchart
    Acked-by: Sakari Ailus
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Remove experimantal tag from the following API elements:
    V4L2_BUF_TYPE_VIDEO_OUTPUT_OVERLAY buffer type.
    V4L2_CAP_VIDEO_OUTPUT_OVERLAY capability flag.
    VIDIOC_ENUM_FRAMESIZES IOCTL.
    VIDIOC_ENUM_FRAMEINTERVALS IOCTL.
    VIDIOC_G_ENC_INDEX IOCTL.
    VIDIOC_ENCODER_CMD and VIDIOC_TRY_ENCODER_CMD IOCTLs.
    VIDIOC_DECODER_CMD and VIDIOC_TRY_DECODER_CMD IOCTLs.

    Signed-off-by: Sakari Ailus
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Sakari Ailus
     

24 Sep, 2012

1 commit

  • Document the multistream support at the DVBAPI, describing
    what delivery systems currently support it (DVB-T2, DVB-S2,
    ISDB-S).

    DVBAPI version increased to 5.8.

    [mchehab@redhat.com: Made some corrections - mostly language]
    Signed-off-by: Evgeny Plehov
    Signed-off-by: Mauro Carvalho Chehab

    Evgeny Plehov
     

15 Sep, 2012

1 commit


14 Sep, 2012

3 commits


10 Sep, 2012

1 commit

  • ENOTTY is now returned for unimplemented ioctl by dvb-frontend.
    Old EOPNOTSUPP & ENOSYS could be still returned by some drivers
    as well as other "non standard" error codes.

    EAGAIN is returned in case of device is in state where it cannot
    perform requested operation. This is for example sleep and statistics
    are queried. Quick check for few demodulator drivers reveals there is
    a lot of different error codes used in such case currently, few to
    mention still: EOPNOTSUPP, ENOSYS, EAGAIN ... Lets try harmonize.

    Signed-off-by: Antti Palosaari
    Signed-off-by: Mauro Carvalho Chehab

    Antti Palosaari
     

27 Aug, 2012

1 commit


24 Aug, 2012

1 commit

  • Linux 3.6-rc3

    * tag 'v3.6-rc3': (764 commits)
    Linux 3.6-rc3
    task_work: add a scheduling point in task_work_run()
    fs: fix fs/namei.c kernel-doc warnings
    eventpoll: use-after-possible-free in epoll_create1()
    vfio: grab vfio_device reference *before* exposing the sucker via fd_install()
    vfio: get rid of vfio_device_put()/vfio_group_get_device* races
    vfio: get rid of open-coding kref_put_mutex
    introduce kref_put_mutex()
    vfio: don't dereference after kfree...
    fbcon: fix race condition between console lock and cursor timer (v1.1)
    mm: compaction: Abort async compaction if locks are contended or taking too long
    mm: have order > 0 compaction start near a pageblock with free pages
    rapidio/tsi721: fix unused variable compiler warning
    rapidio/tsi721: fix inbound doorbell interrupt handling
    drivers/rtc/rtc-rs5c348.c: fix hour decoding in 12-hour mode
    mm: correct page->pfmemalloc to fix deactivate_slab regression
    drivers/rtc/rtc-pcf2123.c: initialize dynamic sysfs attributes
    mm/compaction.c: fix deferring compaction mistake
    drivers/misc/sgi-xp/xpc_uv.c: SGI XPC fails to load when cpu 0 is out of IRQ resources
    string: do not export memweight() to userspace
    ...

    Mauro Carvalho Chehab
     

23 Aug, 2012

1 commit


22 Aug, 2012

2 commits

  • Having missed the merge window, update to 3.6-rc2 to avoid conflicts with
    new patches.

    Signed-off-by: David Woodhouse

    David Woodhouse
     
  • Pull media fixes from Mauro Carvalho Chehab:
    "For bug fixes, at soc_camera, si470x, uvcvideo, iguanaworks IR driver,
    radio_shark Kbuild fixes, and at the V4L2 core (radio fixes)."

    * 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media:
    [media] media: soc_camera: don't clear pix->sizeimage in JPEG mode
    [media] media: mx2_camera: Fix clock handling for i.MX27
    [media] video: mx2_camera: Use clk_prepare_enable/clk_disable_unprepare
    [media] video: mx1_camera: Use clk_prepare_enable/clk_disable_unprepare
    [media] media: mx3_camera: buf_init() add buffer state check
    [media] radio-shark2: Only compile led support when CONFIG_LED_CLASS is set
    [media] radio-shark: Only compile led support when CONFIG_LED_CLASS is set
    [media] radio-shark*: Call cancel_work_sync from disconnect rather then release
    [media] radio-shark*: Remove work-around for dangling pointer in usb intfdata
    [media] Add USB dependency for IguanaWorks USB IR Transceiver
    [media] Add missing logging for rangelow/high of hwseek
    [media] VIDIOC_ENUM_FREQ_BANDS fix
    [media] mem2mem_testdev: fix querycap regression
    [media] si470x: v4l2-compliance fixes
    [media] DocBook: Remove a spurious character
    [media] uvcvideo: Reset the bytesused field when recycling an erroneous buffer

    Linus Torvalds
     

16 Aug, 2012

2 commits