mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-06 02:25:23 +00:00
devices: virtio: video: Remove bitrate control query type.
It's not supported by the protocol and unused by the virtio-video kernel driver. BUG=b:161774071 TEST=USE=test emerge-$BOARD crosvm Change-Id: I5d28072618187b90acb29fbb4b4272f644ebf1d0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2361543 Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Alex Lau <alexlau@chromium.org>
This commit is contained in:
parent
f4a260d3df
commit
8db592593b
3 changed files with 0 additions and 3 deletions
|
@ -270,7 +270,6 @@ impl<'a> VideoCmd {
|
||||||
VIRTIO_VIDEO_CMD_QUERY_CONTROL => {
|
VIRTIO_VIDEO_CMD_QUERY_CONTROL => {
|
||||||
let body = r.read_obj::<virtio_video_query_control>()?;
|
let body = r.read_obj::<virtio_video_query_control>()?;
|
||||||
let query_ctrl_type = match body.control.into() {
|
let query_ctrl_type = match body.control.into() {
|
||||||
VIRTIO_VIDEO_CONTROL_BITRATE => QueryCtrlType::Bitrate,
|
|
||||||
VIRTIO_VIDEO_CONTROL_PROFILE => QueryCtrlType::Profile(
|
VIRTIO_VIDEO_CONTROL_PROFILE => QueryCtrlType::Profile(
|
||||||
r.read_obj::<virtio_video_query_control_profile>()?
|
r.read_obj::<virtio_video_query_control_profile>()?
|
||||||
.format
|
.format
|
||||||
|
|
|
@ -16,7 +16,6 @@ use crate::virtio::Writer;
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub enum QueryCtrlType {
|
pub enum QueryCtrlType {
|
||||||
Bitrate,
|
|
||||||
Profile(Format),
|
Profile(Format),
|
||||||
Level(Format),
|
Level(Format),
|
||||||
}
|
}
|
||||||
|
|
|
@ -135,7 +135,6 @@ impl Capability {
|
||||||
let levels = self.levels.get(&fmt)?;
|
let levels = self.levels.get(&fmt)?;
|
||||||
Some(QueryCtrlResponse::Level(levels.iter().copied().collect()))
|
Some(QueryCtrlResponse::Level(levels.iter().copied().collect()))
|
||||||
}
|
}
|
||||||
_ => None,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue