1. 30 3月, 2009 4 次提交
  2. 29 1月, 2009 3 次提交
  3. 03 1月, 2009 2 次提交
  4. 30 12月, 2008 1 次提交
  5. 18 10月, 2008 1 次提交
  6. 12 10月, 2008 4 次提交
  7. 05 10月, 2008 2 次提交
  8. 27 7月, 2008 2 次提交
  9. 24 7月, 2008 1 次提交
  10. 20 7月, 2008 2 次提交
  11. 05 6月, 2008 2 次提交
  12. 17 5月, 2008 1 次提交
  13. 25 4月, 2008 4 次提交
  14. 31 3月, 2008 1 次提交
  15. 22 10月, 2007 1 次提交
  16. 20 10月, 2007 1 次提交
  17. 10 10月, 2007 4 次提交
  18. 31 7月, 2007 4 次提交
    • 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