media: dw9807-vcm: Smooth the first user movement of the lens
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 3 Jan 2023 16:53:37 +0000 (16:53 +0000)
committerDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 3 Jan 2023 17:37:38 +0000 (17:37 +0000)
commita6619b6bb40fbc402f60cecf5451d1746eb2d877
tree4a7d5b24738fce364e2d4b0a3ac7f81386a90405
parenta22da7da9814f3c9eae9a6f9246cd5c45cd19f4b
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>
drivers/media/i2c/dw9807-vcm.c