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)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:34:13 +0000 (16:34 +0100)
commit8a18d5e13c873b649c5bac768bd1163c74e41d35
treee397b4143661b1ab83d11f4c15cc7f7aba30cfdb
parentcb5079ca83eac36fd7541b20a9e3679910863673
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