summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/uvc
diff options
context:
space:
mode:
authorLamarque Vieira Souza <lamarque@gmail.com>2009-07-22 21:54:51 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 17:18:07 +0200
commit76594c5315d843fb1d3bffe7a8e2559086755f72 (patch)
tree1f4cac05702d8c76b48a61a94ae55543b7c150f5 /drivers/media/video/uvc
parentV4L/DVB (12325): Implement changing resolution on the fly for zr364xx driver (diff)
downloadlinux-76594c5315d843fb1d3bffe7a8e2559086755f72.tar.xz
linux-76594c5315d843fb1d3bffe7a8e2559086755f72.zip
V4L/DVB (12326): zr364xx: error message when buffer is too small and code cleanup
. 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: Lamarque V. Souza <lamarque@gmail.com> Signed-off-by: Antoine Jacquet <royale@zerezo.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/uvc')
0 files changed, 0 insertions, 0 deletions