mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 23:21:31 +00:00
media: cx231xx: controls are from another device, mark this
The last argument of v4l2_ctrl_add_handler() indicates whether the controls you add are from a control handler owned by another driver (true) or from the same driver (false). In this case the last argument was incorrectly set to false. The controls come from the cx25840 subdev. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
fd61d77a3d
commit
8674fd635f
@ -1759,7 +1759,7 @@ int cx231xx_417_register(struct cx231xx *dev)
|
||||
dev->mpeg_ctrl_handler.ops = &cx231xx_ops;
|
||||
if (dev->sd_cx25840)
|
||||
v4l2_ctrl_add_handler(&dev->mpeg_ctrl_handler.hdl,
|
||||
dev->sd_cx25840->ctrl_handler, NULL, false);
|
||||
dev->sd_cx25840->ctrl_handler, NULL, true);
|
||||
if (dev->mpeg_ctrl_handler.hdl.error) {
|
||||
err = dev->mpeg_ctrl_handler.hdl.error;
|
||||
dprintk(3, "%s: can't add cx25840 controls\n", dev->name);
|
||||
|
Loading…
Reference in New Issue
Block a user