Skip to content

Add device path for v4l2 proxy - #3180

Open
bridadan wants to merge 3 commits into
google:mainfrom
bridadan:add_device_path_for_v4l2_proxy
Open

bridadan wants to merge 3 commits into
google:mainfrom
bridadan:add_device_path_for_v4l2_proxy

Conversation

@bridadan

Copy link
Copy Markdown
Collaborator

The first commit fixes b/561629942

The second commit allows you to specify the video device used for the v4l2_proxy: --media=v4l2_proxy:device_path=/dev/video0

Brian Daniels added 2 commits September 17, 2026 11:12
Currently none of the built-in virtio-media features of crosvm are
working (`--crosvm_v4l2_proxy`, `--crosvm_simple_media_device`, etc).
The `media` feature was disabled at some point, but this re-enables it.

Bug: 561629942
Test: cvd create --crosvm_v4l2_proxy /dev/video0
This allows a specific video device to be selected when using the
`--media=v4l2_proxy` feature. If the `device_path` argument is not
specified, it defaults to `/dev/video0` to preserve the existing
behavior.

Bug: 520114678
Test: cvd create --media=v4l2_proxy:device_path=/dev/video2
@bridadan
bridadan force-pushed the add_device_path_for_v4l2_proxy branch from 8cac756 to 4004571 Compare September 17, 2026 15:21
@bridadan
bridadan requested a review from ser-io September 18, 2026 14:31
Comment thread tools/buildutils/cw/Containerfile Outdated

RUN apt update -y && apt upgrade -y
RUN apt install -y sudo devscripts
RUN apt install -y sudo devscripts linux-headers-6.12-$(dpkg --print-architecture)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't modify this build environment. If you need to add new dependencies, add it to the build package script https://github.com/google/android-cuttlefish/blob/main/tools/buildutils/build_package.sh.

@bridadan
bridadan force-pushed the add_device_path_for_v4l2_proxy branch 3 times, most recently from c3e535c to f9abb97 Compare September 18, 2026 20:12
@bridadan
bridadan force-pushed the add_device_path_for_v4l2_proxy branch from f9abb97 to 1f2f073 Compare September 18, 2026 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants