diff options
author | Dan Scally <djrscally@googlemail.com> | 2020-08-28 07:25:20 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-08-29 00:56:34 +0300 |
commit | e59713c68678f3eb6b6ebe97cabdc88c7042567f (patch) | |
tree | 9aae6ce4f6a25c92e2bd098f0e38c2cf99641c7d /src/v4l2/meson.build | |
parent | 6de4772f1e86e4e009d9dda441249c2139b3af85 (diff) |
libcamera: media_object: Make MediaLink::setEnabled() account for existing flags
The MediaDevice::setupLink() function fails (ioctl returns EINVAL) when
it passes only the MEDIA_LNK_FL_ENABLE flag to a link that is already
flagged with MEDIA_LNK_FL_ENABLE and MEDIA_LNK_FL_IMMUTABLE. Contrast to
media-ctl's equivalent media_setup_link() which ORs the new flags with
the existing values. Fix this by preserving all flags but
MEDIA_LNK_FL_ENABLED in MediaLink::setEnabled().
Signed-off-by: Dan Scally <djrscally@gmail.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/v4l2/meson.build')
0 files changed, 0 insertions, 0 deletions