diff options
| author | Akinobu Mita <[email protected]> | 2018-05-06 10:19:24 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2018-06-28 09:06:39 -0400 |
| commit | 34af7d920b766ffa582231ff3ce526d0c6179cd0 (patch) | |
| tree | 1ae600c67fc9b78cf481d16b76411f2836cf1760 /tools/perf/scripts/python | |
| parent | c2cae8951772aff8355171882fcc8e4eb9f53840 (diff) | |
media: ov772x: handle nested s_power() calls
Depending on the v4l2 driver, calling s_power() could be nested. So the
actual transitions between power saving mode and normal operation mode
should only happen at the first power on and the last power off.
This adds an s_power() nesting counter and updates the power state if the
counter is modified from 0 to != 0 or from != 0 to 0.
Cc: Laurent Pinchart <[email protected]>
Cc: Hans Verkuil <[email protected]>
Reviewed-by: Jacopo Mondi <[email protected]>
Signed-off-by: Akinobu Mita <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions