summaryrefslogtreecommitdiffstats
path: root/Documentation/DocBook/media/nv12mt.gif.b64
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2012-09-14 06:45:43 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-09-26 09:48:59 -0300
commita5338190efc7cfa8c99a6856342a77d21c9a05cf (patch)
treee7eb5dd17262a01a9986e6184447cd8e70fea47b /Documentation/DocBook/media/nv12mt.gif.b64
parent663dc7f3a02712e22ef81f4c7b7b1caecceb8e4f (diff)
downloadop-kernel-dev-a5338190efc7cfa8c99a6856342a77d21c9a05cf.zip
op-kernel-dev-a5338190efc7cfa8c99a6856342a77d21c9a05cf.tar.gz
[media] v4l2-core: tvnorms may be 0 for a given input, handle that case
Currently the core code looks at tvnorms to see whether ENUMSTD or G_PARM should be enabled. This is not a good check for drivers that support the STD API on one input and the DV Timings API on another. In that case tvnorms may be 0. Instead check whether s_std is present (for ENUMSTD) or whether g_std or current_norm is present for g_parm. Also, in the enumstd core function return ENODATA if tvnorms is 0, because in that case the current input does not support the STD API and ENUMSTD should return ENODATA for that. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Sakari Ailus <sakari.ailus@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'Documentation/DocBook/media/nv12mt.gif.b64')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud