Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
media:bcm2835-unicam: Power on subdev on open/release, not streaming
The driver was powering on the source subdevice as part of STREAMON, and powering it off in STREAMOFF. This isn't so great if there is a significant amount of setup required for your device. Copy the approach taken in the Atmel ISC driver where s_power(1) is called on first file handle open, and s_power(0) is called on the last release. See https://www.raspberrypi.org/forums/viewtopic.php?f=43&t=232437 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.org>
- Loading branch information
Showing
1 changed file
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters