aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorSowjanya Komatineni <[email protected]>2020-12-11 18:02:30 +0100
committerMauro Carvalho Chehab <[email protected]>2021-01-04 12:53:14 +0100
commit56f64b82356b7494ca58d31652317c2f009d8ca1 (patch)
tree0263b5b1a29bede314e82c898c704757afb34870 /tools/perf/scripts/python/event_analyzing_sample.py
parent2ad100f359c28bed1b3bbca607a7c3e7ab684708 (diff)
media: tegra-video: Use zero crop settings if subdev has no get_selection
Currently try format implementation doesn't check if subdevice has get_selection ops implemented and returns -EINVAL on error from direct v4l2_subdev_call of get_selection. Selection API's are not mandatory for all V4L2 subdevices. This patch fixes it by adding v4l2_subdev_has_ops check prior to calling get_selection ops and continues with try or set format with zero crop settings for subdevices that don't have get_selection and returns -EINVAL only for subdevices that has get_selection ops. Signed-off-by: Sowjanya Komatineni <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions