media: irs1125: Keep HW in sync after imager reset
authorMarkus Proeller <markus.proeller@pieye.org>
Tue, 16 Jun 2020 11:33:56 +0000 (13:33 +0200)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:02 +0000 (16:04 +0000)
commitc851856b0fa3f319676c35c4762a8a7bb9880125
treea53ff044e8f9ebd8faa0f09737ec42bd3c243fd2
parentb8f316f5bb79708320aafbb2708c9a870a70d0cd
media: irs1125: Keep HW in sync after imager reset

When closing the video device, the irs1125 is put in power down state.
To keep V4L2 ctrls and the HW in sync, v4l2_ctrl_handler_setup is
called after power up.

The compound ctrl IRS1125_CID_MOD_PLL however has a default value
of all zeros, which puts the imager into a non responding state.
Thus, this ctrl is not written by the driver into HW after power up.
The userspace has to take care to write senseful data.

Signed-off-by: Markus Proeller <markus.proeller@pieye.org>
drivers/media/i2c/irs1125.c