aboutsummaryrefslogtreecommitdiff
path: root/drivers/media/test-drivers/vimc/vimc-sensor.c
diff options
context:
space:
mode:
authorSakari Ailus <[email protected]>2023-10-13 09:31:37 +0200
committerMauro Carvalho Chehab <[email protected]>2023-11-23 18:31:19 +0100
commit049fa16b81c276f25a09abaa4e8f743470c3cdc8 (patch)
tree92fb57facbc41106348f69aadaed83d0e76b9a21 /drivers/media/test-drivers/vimc/vimc-sensor.c
parent52c2575db8faa1d93227a92a32deb2cd66b96614 (diff)
media: v4l: subdev: Also return pads array information on stream functions
There are two sets of functions that return information from sub-device state, one for stream-unaware users and another for stream-aware users. Add support for stream-aware functions to return format, crop and compose information from pad-based array that are functionally equivalent to the old, stream-unaware ones. Also check state is non-NULL, in order to guard against old drivers potentially calling this with NULL state for active formats or selection rectangles. Signed-off-by: Sakari Ailus <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Reviewed-by: Tomi Valkeinen <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/test-drivers/vimc/vimc-sensor.c')
0 files changed, 0 insertions, 0 deletions