diff options
| author | Sakari Ailus <[email protected]> | 2023-10-13 07:31:37 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2023-11-23 17:31:19 +0000 |
| commit | 049fa16b81c276f25a09abaa4e8f743470c3cdc8 (patch) | |
| tree | 92fb57facbc41106348f69aadaed83d0e76b9a21 /drivers/media/test-drivers/vimc/vimc-sensor.c | |
| parent | media: v4l: subdev: Store the sub-device in the sub-device state (diff) | |
| download | kernel-049fa16b81c276f25a09abaa4e8f743470c3cdc8.tar.gz kernel-049fa16b81c276f25a09abaa4e8f743470c3cdc8.zip | |
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
