mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 12:34:31 +00:00
devices: vhost-user: cras: fix build with audio_cras
feature
http://crrev.com/c/3592633 make `run_with_listener` generic, but did not update the cras vhost-user device to use this new version. BUG=None TEST=Chrome OS build succeeds. Change-Id: I82342e3a2505dc97e5cdaa1749b9091fb986fa35 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3694880 Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Auto-Submit: Alexandre Courbot <acourbot@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Keiichi Watanabe <keiichiw@chromium.org>
This commit is contained in:
parent
19d2fd9c47
commit
9defdd860c
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ use hypervisor::ProtectionType;
|
|||
use once_cell::sync::OnceCell;
|
||||
use sync::Mutex;
|
||||
use vm_memory::GuestMemory;
|
||||
use vmm_vhost::connection::socket::Listener as SocketListener;
|
||||
use vmm_vhost::connection::socket::{Endpoint as SocketEndpoint, Listener as SocketListener};
|
||||
use vmm_vhost::message::{VhostUserProtocolFeatures, VhostUserVirtioFeatures};
|
||||
|
||||
use crate::virtio::snd::cras_backend::{
|
||||
|
@ -273,5 +273,5 @@ pub fn run_cras_snd_device(opts: Options) -> anyhow::Result<()> {
|
|||
let _ = SND_EXECUTOR.set(ex.clone());
|
||||
|
||||
// run_until() returns an Result<Result<..>> which the ? operator lets us flatten.
|
||||
ex.run_until(handler.run_with_listener(listener, &ex))?
|
||||
ex.run_until(handler.run_with_listener::<SocketEndpoint<_>>(listener, &ex))?
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue