1. 31 1月, 2017 2 次提交
  2. 25 11月, 2016 1 次提交
    • A
      [media] v4l: rcar_fdp1: add FCP dependency · 1d389714
      Arnd Bergmann 提交于
      Commit 4710b752 ("[media] v4l: Add Renesas R-Car FDP1 Driver") in the
      v4l-dvb tree adds CONFIG_VIDEO_RENESAS_FDP1.
      
      It calls into the FCP driver, but when there is no dependency, FCP might
      be a module while FDP1 is built-in.
      
      We have the same logic in VIDEO_RENESAS_VSP1, which also depends on
      FCP not being a module when it is built-in itself.
      
      drivers/media/platform/rcar_fdp1.o: In function `fdp1_pm_runtime_resume':
      rcar_fdp1.c:(.text.fdp1_pm_runtime_resume+0x78): undefined reference to `rcar_fcp_enable'
      drivers/media/platform/rcar_fdp1.o: In function `fdp1_pm_runtime_suspend':
      rcar_fdp1.c:(.text.fdp1_pm_runtime_suspend+0x14): undefined reference to `rcar_fcp_disable'
      drivers/media/platform/rcar_fdp1.o: In function `fdp1_probe':
      rcar_fdp1.c:(.text.fdp1_probe+0x15c): undefined reference to `rcar_fcp_get'
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      1d389714
  3. 22 11月, 2016 3 次提交
  4. 17 11月, 2016 2 次提交
  5. 25 10月, 2016 1 次提交
    • A
      [media] platform: pxa_camera: add VIDEO_V4L2 dependency · ff681022
      Arnd Bergmann 提交于
      Moving the pxa_camera driver from soc_camera lots the implied
      VIDEO_V4L2 Kconfig dependency, and building the driver without
      V4L2 results in a kernel that cannot link:
      
      drivers/media/platform/pxa_camera.o: In function `pxa_camera_remove':
      pxa_camera.c:(.text.pxa_camera_remove+0x10): undefined reference to `v4l2_clk_unregister'
      pxa_camera.c:(.text.pxa_camera_remove+0x18): undefined reference to `v4l2_device_unregister'
      drivers/media/platform/pxa_camera.o: In function `pxa_camera_probe':
      pxa_camera.c:(.text.pxa_camera_probe+0x458): undefined reference to `v4l2_of_parse_endpoint'
      drivers/media/v4l2-core/videobuf2-core.o: In function `__enqueue_in_driver':
      drivers/media/v4l2-core/videobuf2-core.o: In function `vb2_core_streamon':
      videobuf2-core.c:(.text.vb2_core_streamon+0x1b4): undefined reference to `v4l_vb2q_enable_media_source'
      drivers/media/v4l2-core/videobuf2-v4l2.o: In function `vb2_ioctl_reqbufs':
      videobuf2-v4l2.c:(.text.vb2_ioctl_reqbufs+0xc): undefined reference to `video_devdata'
      
      This adds back an explicit dependency.
      
      Fixes: 3050b998 ("[media] media: platform: pxa_camera: move pxa_camera out of soc_camera")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NRobert Jarzmik <robert.jarzmik@free.fr>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      ff681022
  6. 21 10月, 2016 1 次提交
  7. 09 9月, 2016 3 次提交
  8. 25 8月, 2016 1 次提交
  9. 24 8月, 2016 1 次提交
  10. 23 8月, 2016 1 次提交
  11. 22 8月, 2016 1 次提交
  12. 14 7月, 2016 1 次提交
    • A
      [media] vsp1: clarify FCP dependency · 19994673
      Arnd Bergmann 提交于
      The newly added FCP support in the vsp1 driver causes a link error
      when CONFIG_RENESAS_FCP=m, since it's not reachable by built-in code:
      
      drivers/media/built-in.o: In function `vsp1_remove':
      :(.text+0xdeca0): undefined reference to `rcar_fcp_put'
      drivers/media/built-in.o: In function `vsp1_probe':
      :(.text+0xdef44): undefined reference to `rcar_fcp_get'
      
      We already have a conditional dependency on FCP that requires
      it for ARM64, so for all others we just have to prevent setting
      RENESAS_VSP1=y when RENESAS_FCP=m by extending the FCP dependency.
      
      Fixes: 94fcdf82 ("[media] v4l: vsp1: Add FCP support")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
      19994673
  13. 09 7月, 2016 3 次提交
  14. 28 6月, 2016 2 次提交
  15. 17 6月, 2016 2 次提交
  16. 16 6月, 2016 1 次提交
  17. 14 4月, 2016 1 次提交
  18. 19 2月, 2016 2 次提交
  19. 01 2月, 2016 1 次提交
  20. 25 1月, 2016 1 次提交
  21. 21 1月, 2016 1 次提交
    • C
      dma-mapping: always provide the dma_map_ops based implementation · e1c7e324
      Christoph Hellwig 提交于
      Move the generic implementation to <linux/dma-mapping.h> now that all
      architectures support it and remove the HAVE_DMA_ATTR Kconfig symbol now
      that everyone supports them.
      
      [valentinrothberg@gmail.com: remove leftovers in Kconfig]
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Aurelien Jacquiot <a-jacquiot@ti.com>
      Cc: Chris Metcalf <cmetcalf@ezchip.com>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Haavard Skinnemoen <hskinnemoen@gmail.com>
      Cc: Hans-Christian Egtvedt <egtvedt@samfundet.no>
      Cc: Helge Deller <deller@gmx.de>
      Cc: James Hogan <james.hogan@imgtec.com>
      Cc: Jesper Nilsson <jesper.nilsson@axis.com>
      Cc: Koichi Yasutake <yasutake.koichi@jp.panasonic.com>
      Cc: Ley Foon Tan <lftan@altera.com>
      Cc: Mark Salter <msalter@redhat.com>
      Cc: Mikael Starvik <starvik@axis.com>
      Cc: Steven Miao <realmz6@gmail.com>
      Cc: Vineet Gupta <vgupta@synopsys.com>
      Cc: Christian Borntraeger <borntraeger@de.ibm.com>
      Cc: Joerg Roedel <jroedel@suse.de>
      Cc: Sebastian Ott <sebott@linux.vnet.ibm.com>
      Signed-off-by: NValentin Rothberg <valentinrothberg@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      e1c7e324
  22. 18 11月, 2015 1 次提交
    • A
      [media] sh-vou: clarify videobuf2 dependency · 3ff863b8
      Arnd Bergmann 提交于
      The sh-vou driver has been converted from videobuf to videobuf2, but
      the Kconfig file still lists VIDEOBUF_DMA_CONTIG as a dependency.
      Consequently we can build the driver without VIDEOBUF2_DMA_CONTIG
      and get a link error:
      
      drivers/built-in.o: In function `sh_vou_probe':
      vf610-ocotp.c:(.text+0x2dbf5c): undefined reference to `vb2_dma_contig_init_ctx'
      vf610-ocotp.c:(.text+0x2dc0b4): undefined reference to `vb2_dma_contig_cleanup_ctx'
      vf610-ocotp.c:(.text+0x2dc144): undefined reference to `vb2_dma_contig_memops'
      drivers/built-in.o: In function `sh_vou_remove':
      vf610-ocotp.c:(.text+0x2dc190): undefined reference to `vb2_dma_contig_cleanup_ctx'
      
      This changes the dependency to VIDEOBUF2_DMA_CONTIG instead.
      
      Fixes: 57af3ad5 ("[media] sh-vou: convert to vb2")
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      3ff863b8
  23. 03 10月, 2015 1 次提交
    • G
      [media] VIDEO_RENESAS_JPU should depend on HAS_DMA · f8445646
      Geert Uytterhoeven 提交于
      If NO_DMA=y:
      
          warning: (VIDEO_STI_BDISP && VIDEO_RENESAS_JPU && VIDEO_DM365_VPFE && VIDEO_OMAP4) selects VIDEOBUF2_DMA_CONTIG which has unmet direct dependencies (MEDIA_SUPPORT && HAS_DMA)
      
          drivers/media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_mmap’:
          drivers/media/v4l2-core/videobuf2-dma-contig.c:207: error: implicit declaration of function ‘dma_mmap_coherent’
          drivers/media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_get_base_sgt’:
          drivers/media/v4l2-core/videobuf2-dma-contig.c:390: error: implicit declaration of function ‘dma_get_sgtable’
      
      VIDEO_RENESAS_JPU selects VIDEOBUF2_DMA_CONTIG, which bypasses its
      dependency on HAS_DMA.  Make VIDEO_RENESAS_JPU depend on HAS_DMA to fix
      this.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: NMikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      f8445646
  24. 17 8月, 2015 1 次提交
  25. 12 8月, 2015 2 次提交
  26. 11 8月, 2015 1 次提交
    • M
      [media] V4L2: platform: Add Renesas R-Car JPEG codec driver · 2c42cdba
      Mikhail Ulyanov 提交于
      Here's the driver for the Renesas R-Car JPEG processing unit.
      
      The driver is implemented within the V4L2 framework as a memory-to-memory
      device.  It presents two video nodes to userspace, one for the encoding part,
      and one for the decoding part.
      
      It was found that the only working mode for encoding is no markers output, so we
      generate markers with software. In the current version of driver we also use
      software JPEG header parsing because with hardware parsing performance is lower
      than desired.
      
      >From a userspace point of view the process is typical (S_FMT, REQBUF,
      optionally QUERYBUF, QBUF, STREAMON, DQBUF) for both the source and destination
      queues. STREAMON can return -EINVAL in case of mismatch of output and capture
      queues format. Also during decoding driver can return buffers if queued
      buffer with JPEG image contains image with inappropriate subsampling (e.g.
      4:2:0 in JPEG and 4:2:2 in capture).  If JPEG image and queue format dimensions
      differ driver will return buffer on QBUF with VB2_BUF_STATE_ERROR flag.
      
      During encoding the available formats are: V4L2_PIX_FMT_NV12M,
      V4L2_PIX_FMT_NV12, V4L2_PIX_FMT_NV16, V4L2_PIX_FMT_NV16M for source and
      V4L2_PIX_FMT_JPEG for destination.
      
      During decoding the available formats are: V4L2_PIX_FMT_JPEG for source and
      V4L2_PIX_FMT_NV12M, V4L2_PIX_FMT_NV16M, V4L2_PIX_FMT_NV12, V4L2_PIX_FMT_NV16
      for destination.
      
      Performance of current version:
      1280x800 NV12 image encoding/decoding
      	decoding ~122 FPS
      	encoding ~191 FPS
      Signed-off-by: NMikhail Ulyanov <mikhail.ulyanov@cogentembedded.com>
      Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      2c42cdba
  27. 22 6月, 2015 1 次提交
    • M
      [media] bdisp: prevent compiling on random arch · 1c8a866d
      Mauro Carvalho Chehab 提交于
      This driver requires support for DMA attrs function, and not
      just DMA. Change the options accordingly to remove those errors:
      
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c: In function ‘bdisp_hw_free_nodes’:
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c:132:3: error: implicit declaration of function ‘dma_free_attrs’ [-Werror=implicit-function-declaration]
         dma_free_attrs(ctx->bdisp_dev->dev,
         ^
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c: In function ‘bdisp_hw_alloc_nodes’:
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c:157:9: error: implicit declaration of function ‘dma_alloc_attrs’ [-Werror=implicit-function-declaration]
        base = dma_alloc_attrs(dev, node_size * MAX_NB_NODE, &paddr,
               ^
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c:157:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
        base = dma_alloc_attrs(dev, node_size * MAX_NB_NODE, &paddr,
             ^
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c: In function ‘bdisp_hw_alloc_filters’:
      /devel/v4l/to_next/drivers/media/platform/sti/bdisp/bdisp-hw.c:219:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
        base = dma_alloc_attrs(dev, size, &paddr, GFP_KERNEL | GFP_DMA, &attrs);
      
      Also, get rid of bogus, unused and duplicated symbol declaration
      for the config option done at bdisp/Kconfig.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@osg.samsung.com>
      1c8a866d
  28. 10 6月, 2015 1 次提交