summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2009-03-28 18:25:35 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2009-03-28 18:25:35 -0700
commit57f3110ab60dcf436b20b31c6e7764f0024040ca (patch)
treeb9eef6f920e74aa076ae6e344fcbadbc6796c4ff /README
parent5d25c814ad864544eb0e58593cadc604618a852c (diff)
downloadmediapointer-dvb-s2-57f3110ab60dcf436b20b31c6e7764f0024040ca.tar.gz
mediapointer-dvb-s2-57f3110ab60dcf436b20b31c6e7764f0024040ca.tar.bz2
gspca: Stop setting buffer type, and avoid memset in querycap
From: Trent Piepho <xyzzy@speakeasy.org> The v4l2-ioctl core checks the buffer type now by only allowing buffer types for which the corresponding ->vidioc_try_fmt_xxx() methods are defined. This driver only defines ->vidioc_try_fmt_vid_cap() so only VIDEO_CAPTURE buffers are allowed to be used with vidioc_g_parm. Also, ->vidioc_enum_fmt_vid_cap() is only called for VIDEO_CAPTURE buffers. There is no need to set the buffer type since it must already be the correct value. The struct which ->vidioc_querycap() is supposed to fill in is already zeroed so it's not necessary to call memset on it. Priority: normal Signed-off-by: Trent Piepho <xyzzy@speakeasy.org> CC: Jean-Francois Moine <moinejf@free.fr>
Diffstat (limited to 'README')
0 files changed, 0 insertions, 0 deletions