OSDN Git Service

media: v4l2-ctrls.c: fix broken auto cluster handling
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 29 Jun 2018 10:12:43 +0000 (06:12 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Wed, 4 Jul 2018 12:33:32 +0000 (08:33 -0400)
commit0245abf8206fb573a3977558de2b7b2be6f3d9f8
tree3a56b7c6a6c1e5c4b87057fbadedde034ade631a
parent662a99e145661c2b35155cf375044deae9b79896
media: v4l2-ctrls.c: fix broken auto cluster handling

When you switch from auto to manual mode for an auto-cluster (e.g.
autogain+gain controls), then the current HW value has to be copied
to the current control value. However, has_changed was never set to
true, so new_to_cur didn't actually copy this value.

Reported-by: Hugues FRUCHET <hugues.fruchet@st.com>
Tested-by: Hugues FRUCHET <hugues.fruchet@st.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-ctrls.c