diff options
| author | Hans Verkuil <[email protected]> | 2015-03-04 09:47:55 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2015-03-23 18:44:35 +0000 |
| commit | e1c47e732cbb4211d15ae0c4465dc4ceefcaa398 (patch) | |
| tree | 1c76ec4c6c75765dd1b90e5a63398d44be3e8fe6 /drivers/media/v4l2-core/v4l2-subdev.c | |
| parent | [media] v4l2-subdev: replace v4l2_subdev_fh by v4l2_subdev_pad_config (diff) | |
| download | kernel-e1c47e732cbb4211d15ae0c4465dc4ceefcaa398.tar.gz kernel-e1c47e732cbb4211d15ae0c4465dc4ceefcaa398.zip | |
[media] v4l2-subdev.h: add 'which' field for the enum structs
While all other pad ops allow you to select whether to use the 'try' or
the 'active' formats, the enum ops didn't have that option and always used
'try'.
However, this will fail if a simple (e.g. PCI) bridge driver wants to use
the enum pad op of a subdev that's also used in a complex platform driver
like the omap3. Such a bridge driver generally wants to enum formats based
on the active format.
So add a new 'which' field to these structs. Note that V4L2_SUBDEV_FORMAT_TRY
is 0, so the default remains TRY (applications need to set reserved to 0).
Signed-off-by: Hans Verkuil <[email protected]>
Acked-by: Lad, Prabhakar <[email protected]>
Tested-by: Lad, Prabhakar <[email protected]>
Acked-by: Laurent Pinchart <[email protected]>
Acked-by: Sylwester Nawrocki <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-subdev.c')
0 files changed, 0 insertions, 0 deletions
