diff options
| author | H. Peter Anvin <hpa@linux.intel.com> | 2010-09-10 14:47:56 -0700 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-01-13 10:25:44 +0100 |
| commit | b870472db5c90d3c96f4b85fbdfce87ce8076fc8 (patch) | |
| tree | 20232ae712793fff9b2fd4a679fc86e49559f90e /hw/usb-net.c | |
| parent | cc5f13956c3e681d5974bc81b6d275c19666af4b (diff) | |
| download | focaccia-qemu-b870472db5c90d3c96f4b85fbdfce87ce8076fc8.tar.gz focaccia-qemu-b870472db5c90d3c96f4b85fbdfce87ce8076fc8.zip | |
usb: add audio device model
This brings a usb audio device to qemu. Output only, fixed at 16bit stereo @ 480000 Hz. Based on a patch from H. Peter Anvin <hpa@linux.intel.com> Usage: add '-device usb-audio' to your qemu command line. Works sorta ok on a idle machine. Known issues: * Is *very* sensitive to latencies. * Burns quite some CPU due to usb polling. In short: It brings the qemu usb emulation to its limits. Enjoy! Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb-net.c')
| -rw-r--r-- | hw/usb-net.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/usb-net.c b/hw/usb-net.c index 5622bedc45..2f527a8ba5 100644 --- a/hw/usb-net.c +++ b/hw/usb-net.c @@ -71,9 +71,6 @@ enum usbstring_idx { #define USB_CDC_UNION_TYPE 0x06 /* union_desc */ #define USB_CDC_ETHERNET_TYPE 0x0f /* ether_desc */ -#define USB_DT_CS_INTERFACE 0x24 -#define USB_DT_CS_ENDPOINT 0x25 - #define USB_CDC_SEND_ENCAPSULATED_COMMAND 0x00 #define USB_CDC_GET_ENCAPSULATED_RESPONSE 0x01 #define USB_CDC_REQ_SET_LINE_CODING 0x20 |