From 58df1c3f42565095f11c2bebe452128d69bbeb3d Mon Sep 17 00:00:00 2001 From: Fletcher Woodruff Date: Wed, 16 Oct 2019 11:46:21 -0600 Subject: CRAS: cras_tests: Restructure arguments In preparation for adding control functionality to cras_tests, restructure Command by making AudioOptions a parameter of the Command enum, e.g Command::Capture(AudioOptions). This way, a control command can be later added as Command::Control(ControlOptions). BUG=chromium:1008990 TEST=cargo test Change-Id: Ic341b78b2c6ea6e74baf776b95bb1134c0d4b2f6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/1865832 Tested-by: Fletcher Woodruff Reviewed-by: Chih-Yang Hsia Commit-Queue: Fletcher Woodruff --- audio_streams/src/audio_streams.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio_streams/src/audio_streams.rs') diff --git a/audio_streams/src/audio_streams.rs b/audio_streams/src/audio_streams.rs index a27596db..f81e95df 100644 --- a/audio_streams/src/audio_streams.rs +++ b/audio_streams/src/audio_streams.rs @@ -44,7 +44,7 @@ use std::os::unix::io::RawFd; use std::result::Result; use std::time::{Duration, Instant}; -#[derive(Copy, Clone, Debug)] +#[derive(Copy, Clone, Debug, PartialEq)] pub enum SampleFormat { U8, S16LE, -- cgit v1.2.3