1. 29 10月, 2013 1 次提交
    • A
      [media] v4l: ti-vpe: Add VPE mem to mem driver · 45719127
      Archit Taneja 提交于
      VPE is a block which consists of a single memory to memory path which
      can perform chrominance up/down sampling, de-interlacing, scaling, and
      color space conversion of raster or tiled YUV420 coplanar, YUV422
      coplanar or YUV422 interleaved video formats.
      
      We create a mem2mem driver based primarily on the mem2mem-testdev
      example. The de-interlacer, scaler and color space converter are all
      bypassed for now to keep the driver simple. Chroma up/down sampler
      blocks are implemented, so conversion beteen different YUV formats is
      possible.
      
      Each mem2mem context allocates a buffer for VPE MMR values which it will
      use when it gets access to the VPE HW via the mem2mem queue, it also
      allocates a VPDMA descriptor list to which configuration and data
      descriptors are added.
      
      Based on the information received via v4l2 ioctls for the source and
      destination queues, the driver configures the values for the MMRs, and
      stores them in the buffer. There are also some VPDMA parameters like
      frame start and line mode which needs to be configured, these are
      configured by direct register writes via the VPDMA helper functions.
      
      The driver's device_run() mem2mem op will add each descriptor based on
      how the source and destination queues are set up for the given ctx, once
      the list is prepared, it's submitted to VPDMA, these descriptors when
      parsed by VPDMA will upload MMR registers, start DMA of video buffers on
      the various input and output clients/ports.
      
      When the list is parsed completely(and the DMAs on all the output ports
      done), an interrupt is generated which we use to notify that the source
      and destination buffers are done. The rest of the driver is quite
      similar to other mem2mem drivers, we use the multiplane v4l2 ioctls as
      the HW support coplanar formats.
      Signed-off-by: NArchit Taneja <archit@ti.com>
      Acked-by: NHans Verkuil <hans.verkuil@cisco.com>
      Signed-off-by: NKamil Debski <k.debski@samsung.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      45719127
  2. 04 10月, 2013 1 次提交
    • G
      [media] media/v4l2: VIDEO_RENESAS_VSP1 should depend on HAS_DMA · 66bf8fa2
      Geert Uytterhoeven 提交于
      If NO_DMA=y:
      warning: (... && VIDEO_RENESAS_VSP1 && ...) 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:202: 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:385: error: implicit declaration of function ‘dma_get_sgtable’
      make[7]: *** [drivers/media/v4l2-core/videobuf2-dma-contig.o] Error 1
      VIDEO_RENESAS_VSP1 (which doesn't have a platform dependency) selects
      VIDEOBUF2_DMA_CONTIG, but the latter depends on HAS_DMA.
      Make VIDEO_RENESAS_VSP1 depend on HAS_DMA to fix this.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      66bf8fa2
  3. 13 9月, 2013 1 次提交
  4. 23 8月, 2013 1 次提交
    • G
      [media] media/v4l2: VIDEO_SH_VEU should depend on HAS_DMA · 976f375d
      Geert Uytterhoeven 提交于
      If NO_DMA=y:
      drivers/media/v4l2-core/videobuf2-dma-contig.c: In function ‘vb2_dc_mmap’:
      drivers/media/v4l2-core/videobuf2-dma-contig.c:204: 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:387: error: implicit declaration of function ‘dma_get_sgtable’
      Commit da508f57 ("[media] media/v4l2:
      VIDEOBUF2_DMA_CONTIG should depend on HAS_DMA") added a dependency on
      HAS_DMA to VIDEO_SH_VEU, as it selects VIDEOBUF2_DMA_CONTIG.
      However, this got lost in the merge conflict resolution in commit
      df90e225 ("Merge branch 'devel-for-v3.10'
      into v4l_for_linus").
      Re-add the dependency to fix this.
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
      976f375d
  5. 18 8月, 2013 1 次提交
  6. 29 6月, 2013 1 次提交
  7. 23 6月, 2013 1 次提交
    • G
      console/font: Refactor font support code selection logic · d1e183c8
      Geert Uytterhoeven 提交于
      The current Makefile rules to build font support are messy and buggy.
      Replace them by Kconfig rules:
        - Introduce CONFIG_FONT_SUPPORT, which controls the building of all font
          code,
        - Select CONFIG_FONT_SUPPORT for all drivers that use fonts,
        - Select CONFIG_FONT_8x16 for all drivers that default to the VGA8x16
          font,
        - Drop the bogus console dependency for CONFIG_VIDEO_VIVI,
        - Always process drivers/video/console/Makefile, as some drivers need
          fonts even if CONFIG_VT is not set.
      
      This fixes (if CONFIG_SOLO6X10=y and there are no built-in console
      drivers):
      
      drivers/built-in.o: In function `solo_osd_print':
      drivers/staging/media/solo6x10/solo6x10-enc.c:144: undefined reference to `.find_font'
      
      This fixes (if CONFIG_VT=n):
      
      drivers/built-in.o: In function `vivi_init':
      vivi.c:(.init.text+0x1a3da): undefined reference to `find_font'
      Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Acked-by: Hans Verkuil <hans.verkuil@cisco.com> [original part]
      Acked-by: Randy Dunlap <rdunlap@infradead.org> [drivers/video/Makefile]
      d1e183c8
  8. 19 6月, 2013 1 次提交
  9. 30 4月, 2013 1 次提交
  10. 31 3月, 2013 1 次提交
  11. 21 3月, 2013 1 次提交
  12. 19 3月, 2013 1 次提交
  13. 22 1月, 2013 1 次提交
  14. 06 1月, 2013 1 次提交
  15. 21 12月, 2012 1 次提交
  16. 28 11月, 2012 1 次提交
  17. 06 10月, 2012 1 次提交
  18. 27 9月, 2012 1 次提交
  19. 16 9月, 2012 1 次提交
  20. 15 9月, 2012 2 次提交
  21. 21 8月, 2012 4 次提交
  22. 16 8月, 2012 11 次提交
  23. 14 8月, 2012 2 次提交
  24. 13 8月, 2012 1 次提交
    • E
      [media] media: Add stk1160 new driver (easycap replacement) · 9cb2173e
      Ezequiel García 提交于
      This driver adds support for stk1160 usb bridge as used in some
      video/audio usb capture devices.
      It is a complete rewrite of staging/media/easycap driver and
      it's meant as a replacement.
      
      As stk1160 allows communication with an ac97 codec chip, this
      driver allows to register a control-only sound card to allow the user
      to access ac97 controls.
      
      Two devices have been used for testing:
      * 1-cvbs video and 1-audio ac97 input,
      * 4-cvbs inputs
      Both of these devices reports with the same id [05e1:0408],
      so the driver tries to support a superset of the capabilities.
      
      By using keep_buffers module parameter it's possible to prevent
      the driver from releasing urb buffers when streaming is stopped.
      The usage of this parameter can avoid memory fragmentation that may
      cause the driver to stop working on low memory systems.
      A similar mechanism is implemented in em28xx driver (see commit 86d38d).
      Signed-off-by: NEzequiel Garcia <elezegarcia@gmail.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      9cb2173e
  25. 06 8月, 2012 1 次提交