summaryrefslogtreecommitdiff
path: root/drivers/media/platform/omap3isp/isppreview.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2014-02-10 08:08:47 -0300
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-02-24 10:59:15 -0300
commitefab6b6a6ea9364ececb955f69a9d3ffc6b782a1 (patch)
treefcd070bab51db4358c9855d3068093a3a797ab8f /drivers/media/platform/omap3isp/isppreview.c
parent38aed47b7e0f6e9a6fe38ef7544970604f7bb595 (diff)
[media] vivi: queue_setup improvements
Drop the vid_limit module option: there is really no need to limit this. No other driver does that. If you try to allocate more buffers then vb2 will automatically reduce the number of buffers anyway. Also add sanity checks if the size in the fmt argument is going to be used and drop the code that checks against *nbuffers == 0: this can never happen (the vb2 framework ensures that) and the code was wrong anyway since *nbuffers should have been set to the minimum number of required buffers which is 1 for this driver. Since vivi is often used as a template driver it is good to have this driver be as compliant as possible. This broken code was for example copied to the s2255 driver (which is being fixed as well). Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/omap3isp/isppreview.c')
0 files changed, 0 insertions, 0 deletions