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:
Alex Lau 2020-08-18 15:18:35 +09:00 committed by Commit Bot
parent f4a260d3df
commit 8db592593b
3 changed files with 0 additions and 3 deletions

View file

@ -270,7 +270,6 @@ impl<'a> VideoCmd {
VIRTIO_VIDEO_CMD_QUERY_CONTROL => {
let body = r.read_obj::<virtio_video_query_control>()?;
let query_ctrl_type = match body.control.into() {
VIRTIO_VIDEO_CONTROL_BITRATE => QueryCtrlType::Bitrate,
VIRTIO_VIDEO_CONTROL_PROFILE => QueryCtrlType::Profile(
r.read_obj::<virtio_video_query_control_profile>()?
.format

View file

@ -16,7 +16,6 @@ use crate::virtio::Writer;
#[derive(Debug)]
pub enum QueryCtrlType {
Bitrate,
Profile(Format),
Level(Format),
}

View file

@ -135,7 +135,6 @@ impl Capability {
let levels = self.levels.get(&fmt)?;
Some(QueryCtrlResponse::Level(levels.iter().copied().collect()))
}
_ => None,
}
}
}