Skip to content

Commit d487526

Browse files
committed
device: use v4l2r 0.0.5 and force 64-bit bindings generation
virtio-media dictates that the V4L2 structures must use the 64-bit layout. Make sure this is the case by requesting the relevant v4l2r feature.
1 parent f686e1c commit d487526

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

device/Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

device/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ libc = "0.2.151"
1414
log = "0.4.20"
1515
nix = { version = "0.28", features = ["fs"] }
1616
thiserror = "1.0.38"
17-
v4l2r = "0.0.4"
17+
# Use 64-bit bindings as this is the format used by virtio-media
18+
v4l2r = { version = "0.0.5", features = ["arch64"] }
1819
zerocopy = { version = "0.7.31", features = ["derive"] }
1920

2021
[features]

0 commit comments

Comments
 (0)