summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2024-11-26 00:13:57 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2024-12-18 17:26:52 +0900
commit39fe4ad96803f4dd97f034c3e4c05c55757bce11 (patch)
treeee154c25987962fd12d321f6710040c6305a79d7 /src
parent9bd9d25a8297441d6cd8934cc3df2a8bbb497251 (diff)
utils: codegen: controls.py: Parse direction information
In preparation for adding support for querying direction information from controls, parse the direction information from control ID definitions. This can later be plugged in directly to the IPA code generators simply by using ctrl.direction. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Diffstat (limited to 'src')
-rwxr-xr-xsrc/py/libcamera/gen-py-controls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/py/libcamera/gen-py-controls.py b/src/py/libcamera/gen-py-controls.py
index cf09c146..d43a7c1c 100755
--- a/src/py/libcamera/gen-py-controls.py
+++ b/src/py/libcamera/gen-py-controls.py
@@ -83,7 +83,7 @@ def main(argv):
vendors.append(vendor)
for ctrl in data['controls']:
- ctrl = Control(*ctrl.popitem(), vendor)
+ ctrl = Control(*ctrl.popitem(), vendor, args.mode)
controls.append(extend_control(ctrl, args.mode))
data = {