1. 12 10月, 2008 4 次提交
  2. 05 10月, 2008 2 次提交
  3. 27 7月, 2008 2 次提交
  4. 24 7月, 2008 1 次提交
  5. 20 7月, 2008 2 次提交
  6. 05 6月, 2008 2 次提交
  7. 17 5月, 2008 1 次提交
  8. 25 4月, 2008 4 次提交
  9. 31 3月, 2008 1 次提交
  10. 22 10月, 2007 1 次提交
  11. 20 10月, 2007 1 次提交
  12. 10 10月, 2007 4 次提交
  13. 31 7月, 2007 5 次提交
    • T
      V4L/DVB (5891): zr36067: Turn off raw capture properly · 9896bbc1
      Trent Piepho 提交于
      When raw capture was turned off, the current capturing frame (v4l_grab_frame)
      wasn't reset to NO_GRAB_ACTIVE.  If capture was turned back on, the driver
      would think this frame was currently being captured, and wait for it to
      complete before starting a new frame.  The hardware on the other hand would
      not be actively capturing a frame.  The result was the driver would wait
      forever for v4l_grab_frame to be captured.
      
      Some calls to zr36057_set_memgrab(0) were missing spin-locks, which have been
      added.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Acked-by: NRonald S. Bultje <rbultje@ronald.bitfreak.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      9896bbc1
    • T
      V4L/DVB (5890): zr36067: Add UYVY, RGB555X, RGB565X, and RGB32 formats · 603d6f2c
      Trent Piepho 提交于
      Add support for the UYVY and the other big endian output formats.  The
      driver was naming formats based on the host endianess.  This is different
      that all the other drivers appear to work and not what software appears
      to expect.
      
      Use ARRAY_SIZE() to find the the size of the zoran_formats array.
      
      Change the way the driver handles setting the video format register.  Rather
      than use some if and switch statements to set to register by looking at the
      format id, the format list simply has a field with the proper bits to set.
      
      Adds a bit of ifdef to make a driver without V4L1 support more possible.
      Also create a macro for defining formats that handles vl41 and/or vl42
      support to avoid repeated ifdefs in the format list.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Acked-by: NRonald S. Bultje <rbultje@ronald.bitfreak.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      603d6f2c
    • T
      V4L/DVB (5888): zr36067: Driver was not returning correct image size · bb2e0339
      Trent Piepho 提交于
      The driver was returning the size of the (fixed) buffer it allocated as the
      sizeimage field in the v4l2 pixel format, rather than the actual size of the
      image.  For example, a 192x128 YUYV image is 49152 bytes but the driver would
      always return 131072 bytes since if that was the size of the v4l buffer.
      
      This violates the v4l2 spec, which says that sizeimage should be the actual
      size of the image for uncompressed formats.  It also caused mplayer to crash.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Acked-by: NRonald S. Bultje <rbultje@ronald.bitfreak.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      bb2e0339
    • T
      V4L/DVB (5887): zr36067: Fix poll() operation · e42af83f
      Trent Piepho 提交于
      During uncompressed capture, the poll() function was looking the wrong frame.
      It was using the frame the driver was going to capture into next (pend_tail),
      when it should have been looking at the next frame to be de-queued with
      DQBUF/SYNC (sync_tail).
      
      It also wasn't looking in the right spot.  It was looking at the file handle's
      copy of the buffer status, rather than the driver core copy.  The interrupt
      routine marks frames as done in the driver core copy, the file handle copy
      isn't updated.  So even if poll() looked at the right frame, it would never
      see it transition to done and return POLLIN.
      
      The compressed capture code has this same problem, looking in fh->jpg_buffers
      when it should have used zr->jpg_buffers.
      
      There was some logic to detect when there was no current capture in process
      nor any frames queued and try to return an error, which ends up being a bad
      idea.  It's possible to call select() from one thread while no capture is in
      process, or no frames queued, and then start a capture or queue frames from
      another thread.
      
      The buffer state variables are protected by a spin lock, which the code wasn't
      acquiring.  That is fixed too.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Acked-by: NRonald S. Bultje <rbultje@ronald.bitfreak.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      e42af83f
    • T
      V4L/DVB (5886): zr36067: Fix problem setting norms · c812b67c
      Trent Piepho 提交于
      The zr36067 driver doesn't make a distinction between the different sub-types
      of NTSC, PAL, or SECAM norms.  For example, when the enum std ioctl returns
      the PAL standard it returns PAL_BG|PAL_DK|PAL_H|PAL_I.
      
      When setting the norm, it required the bitmask to match exactly the set of
      norms used during the enumeration.  If just one norm was specified, for
      example PAL_BG or NTSC_M, it would fail.  This violates the V4L2 spec,
      "VIDIOC_S_STD accepts *one* or more flags..."
      
      The key thing to realize is that V4L2_STD_PAL is not one bit, it is multiple
      bits.  It's ok to call S_STD with any *one* of those bits, but the driver was
      requiring *all* of them.
      
      This fixes the S_STD function so that it will accept any set of one or more
      PAL norms as PAL, and the same for NTSC and SECAM.
      Signed-off-by: NTrent Piepho <xyzzy@speakeasy.org>
      Acked-by: NRonald S. Bultje <rbultje@ronald.bitfreak.net>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      c812b67c
  14. 19 7月, 2007 1 次提交
  15. 09 5月, 2007 1 次提交
  16. 13 2月, 2007 1 次提交
  17. 12 2月, 2007 1 次提交
  18. 26 9月, 2006 1 次提交
  19. 11 9月, 2006 1 次提交
    • M
      V4L/DVB (4605): Fixes an issue with V4L1 and make headers-install · 8a905162
      Mauro Carvalho Chehab 提交于
      V4L1 support should be disabled when no CONFIG_VIDEO_V4L1_COMPAT is defined,
      to allow checking for broken V4L2 ports. This is very important during the
      migration phase for V4L2 API.
      However, userspace apps should be capable of using both APIs, since they need
      to test at runtime, via VIDIOCGCAP ioctl, if V4L1 is supported. So, when
      __KERNEL__ is not defined, those ioctls and corresponding structs should be
      visible.
      This patch also removes the obsolete defines HAVE_V4L1 and HAVE_V4L2, that
      where causing some confusion, and were replaced by CONFIG_VIDEO_V4L1_COMPAT
      and CONFIG_VIDEO_V4L2.
      Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
      8a905162
  20. 01 7月, 2006 1 次提交
  21. 25 6月, 2006 2 次提交
  22. 25 3月, 2006 1 次提交