Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Missing USB Isochronous transfer support

40 views
Skip to first unread message

Radosław Morski

unread,
Jan 6, 2025, 1:11:35 PMJan 6
to crosvm-dev
Hi All,

I was trying to attach USB external sound card to my Cuttlefish based AOSP image. ALSA is able to correctly recognize the device, but when I try to play any audio via tinyalsa I get a flood of "Could not find endpoint for transfer" errors. I was debugging this issue for a while and it looks like USB controller emulation code is pretty limited and does not support altsettigs for USB interfaces as well as Isochronous transfer type. Are there any plans to support this feature?

Btw, everything works out of the box when I use QEMU based AOSP emulator.

Regards,
Radoslaw

Dmitry Torokhov

unread,
Jan 6, 2025, 1:14:58 PMJan 6
to Radosław Morski, crosvm-dev
Isochronous support is currently not a priority for crosvm USB support as we expect the host to handle most of such devices.

--
You received this message because you are subscribed to the Google Groups "crosvm-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to crosvm-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/crosvm-dev/7c25768f-71c8-482c-aa17-9f2e1257a206n%40chromium.org.

Dennis Kempin

unread,
Jan 6, 2025, 1:15:35 PMJan 6
to Radosław Morski, Junichi Uekawa, Federico (Morg) Pareschi, crosvm-dev
Adding some of our USB experts to this email @Junichi Uekawa @Federico (Morg) Pareschi 

On Mon, Jan 6, 2025 at 10:11 AM 'Radosław Morski' via crosvm-dev <crosv...@chromium.org> wrote:
--

Junichi Uekawa (上川純一)

unread,
Jan 20, 2025, 2:08:14 AMJan 20
to Dennis Kempin, Radosław Morski, Federico (Morg) Pareschi, crosvm-dev
Hi,

I believe because virtio-snd worked well enough USB audio hasn't been a priority to implement. What's the use case here?
Testing out USB audio hardware ?



2025年1月7日(火) 3:15 Dennis Kempin <dennis...@google.com>:


--
Junichi Uekawa
Google

Radosław Morski

unread,
Jan 20, 2025, 2:23:17 PMJan 20
to crosvm-dev, Junichi Uekawa (上川純一), Radosław Morski, Federico (Morg) Pareschi, crosvm-dev, Dennis Kempin
Hi Junichi,

The goal is to support for 7.1 audio using external USB sound card for prototyping. It works fine with QEMU USB pass through so I was also trying to do the same with Cuttlefish. The issue with virtio-snd is that crosvm+webrtc supports only 2 channels output. After going through all the code to learn Cuttlefish audio pipeline is seems the easiest solution is to extend virtio-snd audio backend to support 8 channel audio and render audio directly on the host side, bypassing webrtc to browser audio pipeline (which is mostly hardcoded to stereo as well).

Regards,
Radoslaw Morski 
Reply all
Reply to author
Forward
0 new messages