1. 12 9月, 2009 3 次提交
    • L
      V4L/DVB (12326): zr364xx: error message when buffer is too small and code cleanup · 76594c53
      Lamarque Vieira Souza 提交于
      . added code to print an error message when buffer is too small to hold frame
      data, that is better than just a hard crash. Tested using MAX_FRAME_SIZE =
      50000, lots of error messages appeared in /var/log/messages but no crash.
      
      . removed line "f->type = V4L2_BUF_TYPE_VIDEO_CAPTURE;" in
      zr364xx_vidioc_try_fmt_vid_cap, it should not be there.
      
      . changes to improve performance (or at least not hurt it): removed some
      unneeded debug messages; added macro FULL_DEBUG to enable debug messages in
      performance critical places, this macro is disabled by default; removed "if
      (frm->lpvbits == NULL)..." in zr364xx_read_video_callback because after
      analisying the source code I concluded it will always results to false, so it
      is not needed.
      
      . some small code reorganization.
      Signed-off-by: NLamarque V. Souza <lamarque@gmail.com>
      Signed-off-by: NAntoine Jacquet <royale@zerezo.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      76594c53
    • L
      V4L/DVB (12325): Implement changing resolution on the fly for zr364xx driver · 8c5f32ac
      Lamarque Vieira Souza 提交于
      This patch implements changing resolution in zr364xx_vidioc_s_fmt_vid_cap for
      zr364xx driver. This version is synced with v4l-dvb as of 20/Jul/2009. Tested
      with Creative PC-CAM 880.
      
      OBS: I had to increase MAX_FRAME_SIZE to prevent a hard crash in my notebook
      (caps lock blinking) when testing with mplayer, which automatically sets
      resolution to the maximum (640x480). Maybe we should add code to auto-detect
      frame size to prevent this kind of crash in the future.
      Signed-off-by: NLamarque V. Souza <lamarque@gmail.com>
      Signed-off-by: NAntoine Jacquet <royale@zerezo.com>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      8c5f32ac
    • L
      V4L/DVB (12278): zr364xx: implement V4L2_CAP_STREAMING · ccbf035a
      Lamarque Vieira Souza 提交于
      This patch implements V4L2_CAP_STREAMING for the zr364xx driver, by
      converting the driver to use videobuf. This version is synced with v4l-dvb as
      of 15/Jul/2009.
      
      Tested with Creative PC-CAM 880.
      
      It basically:
      . implements V4L2_CAP_STREAMING using videobuf;
      
      . re-implements V4L2_CAP_READWRITE using videobuf;
      
      . copies cam->udev->product to the card field of the v4l2_capability struct.
      That gives more information to the users about the webcam;
      
      . moves the brightness setting code from before requesting a frame (in
      read_frame) to the vidioc_s_ctrl ioctl. This way the brightness code is
      executed only when the application requests a change in brightness and
      not before every frame read;
      
      . comments part of zr364xx_vidioc_try_fmt_vid_cap that says that Skype +
      libv4l do not work.
      
      This patch fixes zr364xx for applications such as mplayer,
      Kopete+libv4l and Skype+libv4l can make use of the webcam that comes
      with zr364xx chip.
      Signed-off-by: NLamarque V. Souza <lamarque@gmail.com>
      Signed-off-by: NAntoine Jacquet <royale@zerezo.com>
      [mchehab@redhat.com: fix the lack of linux/version.h]
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      ccbf035a
  2. 31 8月, 2009 1 次提交
  3. 17 6月, 2009 1 次提交
  4. 07 4月, 2009 1 次提交
  5. 30 3月, 2009 2 次提交
  6. 03 1月, 2009 2 次提交
  7. 22 10月, 2008 1 次提交
    • H
      V4L/DVB (9327): v4l: use video_device.num instead of minor in video%d · c6330fb8
      Hans Verkuil 提交于
      The kernel number of a v4l2 node (e.g. videoX, radioX or vbiX) is now
      independent of the minor number. So instead of using the minor field
      of the video_device struct one has to use the num field: this always
      contains the kernel number of the device node.
      
      I forgot about this when I did the v4l2 core change, so this patch
      converts all drivers that use it in one go. Luckily the change is
      trivial.
      
      Cc: michael@mihu.de
      Cc: mchehab@infradead.org
      Cc: corbet@lwn.net
      Cc: luca.risolia@studio.unibo.it
      Cc: isely@pobox.com
      Cc: pe1rxq@amsat.org
      Cc: royale@zerezo.com
      Cc: mkrufky@linuxtv.org
      Cc: stoth@linuxtv.org
      Signed-off-by: NHans Verkuil <hverkuil@xs4all.nl>
      Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
      c6330fb8
  8. 12 10月, 2008 4 次提交
  9. 27 7月, 2008 1 次提交
  10. 26 7月, 2008 2 次提交
  11. 24 7月, 2008 1 次提交
  12. 20 7月, 2008 1 次提交
  13. 25 4月, 2008 1 次提交
  14. 31 3月, 2008 1 次提交
  15. 18 2月, 2008 2 次提交
  16. 26 1月, 2008 1 次提交
  17. 19 7月, 2007 2 次提交
  18. 28 4月, 2007 3 次提交