media: dw9807-vcm: Smooth the first user movement of the lens 29/293329/1
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 3 Jan 2023 16:53:37 +0000 (16:53 +0000)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 22 May 2023 08:02:30 +0000 (17:02 +0900)
commite10ddf2615459b882bf2e0ba1d490c5ab80f04eb
tree2d19d85bf17c59a52ef6e32e853e8145490e7485
parent90d24e832ed8c322660a8349b91148cd0bbe69f4
media: dw9807-vcm: Smooth the first user movement of the lens

The power up/down sequence is already ramped. Extend this to
the first user movement as well, as this will generally avoid
the "tick" noises due to rapid movements and overshooting.
Subsequent movements are generally smaller and so don't cause
issues.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
[sw0312.kim: cherry-pick raspberry pi kernel upstream to support rpi camera module v3]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I96f63baa59ecbac8f873953701b90e3c35f18d60
drivers/media/i2c/dw9807-vcm.c