Searched hist:c5fafbad (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/staging/media/atomisp/i2c/ |
H A D | atomisp-gc0310.c | c5fafbad Sun Oct 16 14:49:43 CDT 2022 Hans de Goede <hdegoede@redhat.com> media: atomisp: gc0310: Power on sensor from set_fmt() callback
Depending on which order userspace makes various v4l2 calls, the sensor might still be powered down when set_fmt is called.
What should really happen here is delay the writing of the mode-related registers till streaming is started, but for now use the same quick fix as the atomisp_ov2680 code and call power_up() from set_fmt() in combination with keeping track of the power-state to avoid doing the power-up sequence twice.
Reviewed-by: Andy Shevchenko <andy@kernel.org> Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
|