diff options
author | Antoine Jacquet <royale@zerezo.com> | 2009-07-22 16:54:51 -0300 |
---|---|---|
committer | Antoine Jacquet <royale@zerezo.com> | 2009-07-22 16:54:51 -0300 |
commit | 9eeecdeb0316860051424e4fa4fe315c10fcc0ad (patch) | |
tree | 9bb2705f8191c91338a5362be926b9b8a4830b4b /linux/drivers/media/dvb/ttpci/budget-core.c | |
parent | f48a1698a65eb9b345a625027ac3b8895ab1917a (diff) | |
download | mediapointer-dvb-s2-9eeecdeb0316860051424e4fa4fe315c10fcc0ad.tar.gz mediapointer-dvb-s2-9eeecdeb0316860051424e4fa4fe315c10fcc0ad.tar.bz2 |
zr364xx: error message when buffer is too small and code cleanup
From: Lamarque Vieira Souza <lamarque@gmail.com>
. 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>
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/budget-core.c')
0 files changed, 0 insertions, 0 deletions