crosvm/libcras_stub
Pattara Teerapong 575d9bf02c devices: snd: Add parsing PCMDeviceParameters to Parameters
Add new parameters to snd device: output_device_config,
input_device_config for configuring each PCM device.

Add PCMDeviceParameters to describe the parameters for the PCM device.
For all platforms, it supported setting stream effects. For ChromeOS
with CRAS, it also supported setting different client type and
stream type when connecting stream to CRAS.

This CL only implement the parsing parameters from command line part
and does not actually use the value yet.

This CL depends on libcras StreamType implementation CL:4273509

BUG=b:269984052
TEST=cargo test --features=audio,audio_cras
TEST=FEATURES=test emerge-amd64-generic crosvm

Change-Id: I1d64af5edf2eb4391c439edf3ce90f5426fdf57c
Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4274044
Reviewed-by: Judy Hsiao <judyhsiao@google.com>
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
Commit-Queue: Pattara Teerapong <pteerapong@chromium.org>
2023-03-01 10:03:19 +00:00
..
src devices: snd: Add parsing PCMDeviceParameters to Parameters 2023-03-01 10:03:19 +00:00
Cargo.toml Fix remaining Chrome/Chromium OS instances 2023-01-03 22:14:30 +00:00
README.md docs: Use mdformat to format markdown files 2022-01-27 21:29:11 +00:00

Stub crate for libcras

libcras is used by ChromeOS to play audio through the cras server.

In ChromeOS builds, the audio_cras cargo feature is enabled and this crate is replaced with the actual libcras implementation.

On other platforms, the feature flag will remain disabled and this crate is used to satisfy cargo dependencies on libcras.