22 Mar, 2016

1 commit

  • I noticed this while merging the drm tree and checking for stragglers:
    the vsp1 driver still used dma_[alloc|free]_writecombine() that got
    renamed in commit f6e45661f9be ("dma, mm/pat: Rename
    dma_*_writecombine() to dma_*_wc()")

    I should have noticed back in the media merge (commit bace3db5da97), but
    better late than never.

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

17 Mar, 2016

1 commit

  • Pull media updates from Mauro Carvalho Chehab:
    - Added support for some new video formats
    - mn88473 DVB frontend driver got promoted from staging
    - several improvements at the VSP1 driver
    - several cleanups and improvements at the Media Controller
    - added Media Controller support to snd-usb-audio. Currently, enabled
    only for au0828-based V4L2/DVB boards
    - Several improvements at nuvoton-cir: it now supports wake up codes
    - Add media controller support to em28xx and saa7134 drivers
    - coda driver now accepts NXP distributed firmware files
    - Some legacy SoC camera drivers will be moving to staging, as they're
    outdated and nobody so far is willing to fix and convert them to use
    the current media framework
    - As usual, lots of cleanups, improvements and new board additions.

    * tag 'media/v4.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media: (381 commits)
    media: au0828 disable tuner to demod link in au0828_media_device_register()
    [media] touptek: cast char types on %x printk
    [media] touptek: don't DMA at the stack
    [media] mceusb: use %*ph for small buffer dumps
    [media] v4l: exynos4-is: Drop unneeded check when setting up fimc-lite links
    [media] v4l: vsp1: Check if an entity is a subdev with the right function
    [media] hide unused functions for !MEDIA_CONTROLLER
    [media] em28xx: fix Terratec Grabby AC97 codec detection
    [media] media: add prefixes to interface types
    [media] media: rc: nuvoton: switch attribute wakeup_data to text
    [media] v4l2-ioctl: fix YUV422P pixel format description
    [media] media: fix null pointer dereference in v4l_vb2q_enable_media_source()
    [media] v4l2-mc.h: fix yet more compiler errors
    [media] staging/media: add missing TODO files
    [media] media.h: always start with 1 for the audio entities
    [media] sound/usb: Use meaninful names for goto labels
    [media] v4l2-mc.h: fix compiler warnings
    [media] media: au0828 audio mixer isn't connected to decoder
    [media] sound/usb: Use Media Controller API to share media resources
    [media] dw2102: add support for TeVii S662
    ...

    Linus Torvalds
     

09 Mar, 2016

1 commit

  • Rename dma_*_writecombine() to dma_*_wc(), so that the naming
    is coherent across the various write-combining APIs. Keep the
    old names for compatibility for a while, these can be removed
    at a later time. A guard is left to enable backporting of the
    rename, and later remove of the old mapping defines seemlessly.

    Build tested successfully with allmodconfig.

    The following Coccinelle SmPL patch was used for this simple
    transformation:

    @ rename_dma_alloc_writecombine @
    expression dev, size, dma_addr, gfp;
    @@

    -dma_alloc_writecombine(dev, size, dma_addr, gfp)
    +dma_alloc_wc(dev, size, dma_addr, gfp)

    @ rename_dma_free_writecombine @
    expression dev, size, cpu_addr, dma_addr;
    @@

    -dma_free_writecombine(dev, size, cpu_addr, dma_addr)
    +dma_free_wc(dev, size, cpu_addr, dma_addr)

    @ rename_dma_mmap_writecombine @
    expression dev, vma, cpu_addr, dma_addr, size;
    @@

    -dma_mmap_writecombine(dev, vma, cpu_addr, dma_addr, size)
    +dma_mmap_wc(dev, vma, cpu_addr, dma_addr, size)

    We also keep the old names as compatibility helpers, and
    guard against their definition to make backporting easier.

    Generated-by: Coccinelle SmPL
    Suggested-by: Ingo Molnar
    Signed-off-by: Luis R. Rodriguez
    Cc: Linus Torvalds
    Cc: Peter Zijlstra
    Cc: Thomas Gleixner
    Cc: airlied@linux.ie
    Cc: akpm@linux-foundation.org
    Cc: benh@kernel.crashing.org
    Cc: bhelgaas@google.com
    Cc: bp@suse.de
    Cc: dan.j.williams@intel.com
    Cc: daniel.vetter@ffwll.ch
    Cc: dhowells@redhat.com
    Cc: julia.lawall@lip6.fr
    Cc: konrad.wilk@oracle.com
    Cc: linux-fbdev@vger.kernel.org
    Cc: linux-pci@vger.kernel.org
    Cc: luto@amacapital.net
    Cc: mst@redhat.com
    Cc: tomi.valkeinen@ti.com
    Cc: toshi.kani@hp.com
    Cc: vinod.koul@intel.com
    Cc: xen-devel@lists.xensource.com
    Link: http://lkml.kernel.org/r/1453516462-4844-1-git-send-email-mcgrof@do-not-panic.com
    Signed-off-by: Ingo Molnar

    Luis R. Rodriguez
     

05 Mar, 2016

2 commits


04 Mar, 2016

1 commit


03 Mar, 2016

14 commits

  • Power on devices represented by entities in the graph through the pipeline
    state using V4L2 graph PM operations instead of what was in the omap3isp
    driver.

    Signed-off-by: Sakari Ailus
    Cc: Laurent Pinchart
    Signed-off-by: Mauro Carvalho Chehab

    Sakari Ailus
     
  • This driver is deprecated: it should become a stand-alone driver
    instead of using the soc-camera framework.

    Unless someone is willing to take this on (unlikely with such
    ancient hardware) it is going to be removed from the kernel
    soon.

    Signed-off-by: Hans Verkuil
    Acked-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • This driver is deprecated: it should become a stand-alone driver
    instead of using the soc-camera framework.

    Unless someone is willing to take this on (unlikely with such
    ancient hardware) it is going to be removed from the kernel
    soon.

    Signed-off-by: Hans Verkuil
    Acked-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • This driver is deprecated: it needs to be converted to vb2 and
    it should become a stand-alone driver instead of using the
    soc-camera framework.

    Unless someone is willing to take this on (unlikely with such
    ancient hardware) it is going to be removed from the kernel
    soon.

    Acked-by: Guennadi Liakhovetski
    Signed-off-by: Hans Verkuil
    Signed-off-by: Mauro Carvalho Chehab

    Hans Verkuil
     
  • Add support for the new YUV422M, YVU422M, YUV444M and YVU444M formats.
    This allows applications to check their support for these formats.

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

    Hans Verkuil
     
  • Try loading the firmware from firmware files named vpu_fw_imx*.bin, as
    they are originally distributed by NXP. Fall back to v4l-coda*-imx6*.bin.

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

    Philipp Zabel
     
  • Freescale distribute their VPU firmware files with a 16 byte header
    in BIT processor native order. This patch allows to detect the header
    and to reorder the firmware on the fly.
    With this patch it should be possible to use the distributed
    vpu_fw_imx{53,6q,6d}.bin files directly after renaming them to
    v4l-coda*-imx{53,6q,6dl}.bin.

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

    Philipp Zabel
     
  • IS_ERR_VALUE() assumes that its parameter is an unsigned long.
    It can not be used to check if an unsigned int reflects an error.
    Doing so can result in the following build warning.

    drivers/media/platform/soc_camera/atmel-isi.c:
    In function "atmel_isi_probe":
    include/linux/err.h:21:38: warning:
    comparison is always false due to limited range of data type
    drivers/media/platform/soc_camera/atmel-isi.c:1089:6: note:
    in expansion of macro "IS_ERR_VALUE"

    If that warning is seen, the return value from platform_get_irq() is not
    checked for errors.

    Signed-off-by: Guenter Roeck
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Guenter Roeck
     
  • Convert pxa_camera to dmaengine. This removes all DMA registers
    manipulation in favor of the more generic dmaengine API.

    The functional level should be the same as before. The biggest change is
    in the sg_split() function, which splits a videobuf-dma into several
    scatterlists for 3 planes captures (Y, U, V).

    Signed-off-by: Robert Jarzmik
    [g.liakhovetski@gmx.de: fix a function prototype, use bool, struct init]
    Signed-off-by: Guennadi Liakhovetski

    Signed-off-by: Mauro Carvalho Chehab

    Robert Jarzmik
     
  • This moves the dma irq handling functions up in the source file, so that
    they are available before DMA preparation functions. It prepares the
    conversion to DMA engine, where the descriptors are populated with these
    functions as callbacks.

    Signed-off-by: Robert Jarzmik
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Robert Jarzmik
     
  • In preparation for dmaengine conversion, move the camera interrupt
    handling into a tasklet. This won't change the global flow, as this
    interrupt is only used to detect the end of frame and activate DMA fifos
    handling.

    Signed-off-by: Robert Jarzmik
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Robert Jarzmik
     
  • Fix the error path where the video buffer wasn't allocated nor
    mapped. In this case, in the driver free path don't try to unmap memory
    which was not mapped in the first place.

    Signed-off-by: Robert Jarzmik
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Robert Jarzmik
     
  • The mx3_camera driver prints DMA addresses using the "%x" format
    string, which is wrong when using a 64-bit dma_addr_t definition:

    media/platform/soc_camera/mx3_camera.c: In function 'mx3_cam_dma_done':
    media/platform/soc_camera/mx3_camera.c:149:125: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t {aka long long unsigned int}' [-Werror=format=]
    media/platform/soc_camera/mx3_camera.c: In function 'mx3_videobuf_queue':
    media/platform/soc_camera/mx3_camera.c:317:119: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t {aka long long unsigned int}' [-Werror=format=]
    media/platform/soc_camera/mx3_camera.c: In function 'mx3_videobuf_release':
    media/platform/soc_camera/mx3_camera.c:346:119: error: format '%x' expects argument of type 'unsigned int', but argument 5 has type 'dma_addr_t {aka long long unsigned int}' [-Werror=format=]

    This changes the code to use the special %pad format string, which
    always does the right thing.

    Signed-off-by: Arnd Bergmann
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Arnd Bergmann
     
  • This patch adds ARGB8888 capture format support for R-Car Gen3.

    Signed-off-by: Koji Matsuoka
    Signed-off-by: Yoshihiro Kaneko
    Signed-off-by: Guennadi Liakhovetski
    Signed-off-by: Mauro Carvalho Chehab

    Koji Matsuoka
     

23 Feb, 2016

2 commits


19 Feb, 2016

18 commits