mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-06 13:23:18 +00:00
media: atomisp: mt9m114: Disable V4L2_CID_3A_LOCK control
The V4L2_CID_3A_LOCK control is causing v4l2_ctrl_new_custom() to fail with -ERANGE. It would be better to fix this control but this entire driver is going to be replaced with the drivers/media/i2c/mt9m114 standard v4l2 driver. This quick fix gets things going for now until the driver is replaced. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Andy Shevchenko <andy@kernel.org> Link: https://lore.kernel.org/r/20241013154056.12532-3-hdegoede@redhat.com Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
751d13a0cf
commit
1059f9e6cc
@ -1224,6 +1224,7 @@ static struct v4l2_ctrl_config mt9m114_controls[] = {
|
||||
.def = 0,
|
||||
.flags = 0,
|
||||
},
|
||||
#if 0 /* Causes v4l2_ctrl_new_custom() to fail with -ERANGE, disable for now */
|
||||
{
|
||||
.ops = &ctrl_ops,
|
||||
.id = V4L2_CID_3A_LOCK,
|
||||
@ -1235,6 +1236,7 @@ static struct v4l2_ctrl_config mt9m114_controls[] = {
|
||||
.def = 0,
|
||||
.flags = 0,
|
||||
},
|
||||
#endif
|
||||
};
|
||||
|
||||
static int mt9m114_detect(struct mt9m114_device *dev, struct i2c_client *client)
|
||||
|
Loading…
Reference in New Issue
Block a user