commit | e4f63747614e26114e264b53df320d6071beff50 | [log] [tgz] |
---|---|---|
author | Pattara Teerapong <pteerapong@chromium.org> | Tue Feb 21 06:03:54 2023 +0000 |
committer | crosvm LUCI <crosvm-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 02 06:22:40 2023 +0000 |
tree | 2c3f52820c1496db4babd4750da28ba9b6f466e7 | |
parent | ad91142aef2f669a2df9c5705e375d42fd7ec36e [diff] |
devices: snd: Use PCM device client_type and stream_type for CRAS Read PCM device parameters and set CRAS client's client type and stream type. Fallback to the virtio snd device's client type and CRAS_STREAM_TYPE_DEFAULT if not set. Resize the PCM device config of the provided parameters to match the number of PCM devices. Also add unit test for the virtio-snd::new function which checks the PCM device config resizing and the data that are derived from the parameters. BUG=b:269984052 TEST=cargo test --features audio,audio_cras TEST=FEATURES=test emerge-amd64-generic crosvm TEST=Setting client_type and stream_type on ARCVM Change-Id: I692881a1e4117f8c67b162d2966acfab9282011a Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/4275361 Commit-Queue: Pattara Teerapong <pteerapong@chromium.org> Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
crosvm is a virtual machine monitor (VMM) based on Linux’s KVM hypervisor, with a focus on simplicity, security, and speed. crosvm is intended to run Linux guests, originally as a security boundary for running native applications on the ChromeOS platform. Compared to QEMU, crosvm doesn’t emulate architectures or real hardware, instead concentrating on paravirtualized devices, such as the virtio standard.
crosvm is currently used to run Linux/Android guests on ChromeOS devices.