USB sound device doesn't work in Linux

I've tried to use several USB sound adapters shared from my Raspberry Pi 3 VirtualHere server from within a Linux VM without success. From Windows, they all work fine. In the Linux VM, this is what dmesg is giving me when I attach the sound device:

[18397.556172] vhci_hcd vhci_hcd.0: pdev(0) rhport(0) sockfd(15)
[18397.556177] vhci_hcd vhci_hcd.0: devid(5) speed(2) speed_str(full-speed)
[18397.556199] vhci_hcd vhci_hcd.0: Device attached
[18397.730888] vhci_hcd: vhci_device speed not set
[18397.790884] usb 1-1: new full-speed USB device number 13 using vhci_hcd
[18397.858879] vhci_hcd: vhci_device speed not set
[18397.918930] usb 1-1: SetAddress Request (13) to port 0
[18397.951838] usb 1-1: New USB device found, idVendor=0d8c, idProduct=000e, bcdDevice= 1.00
[18397.951842] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[18397.951843] usb 1-1: Product: Generic USB Audio Device   
[18398.138070] input: CM109 USB driver as /devices/platform/vhci_hcd.0/usb1/1-1/1-1:1.3/input/input12
[18398.251102] vhci_get_frame_number: 13 callbacks suppressed
[18398.251105] usb usb1: Not yet implemented
[18398.251119] usb usb1: Not yet implemented
[18398.251121] usb usb1: Not yet implemented
[18398.251124] usb usb1: Not yet implemented
[18398.251136] usb usb1: Not yet implemented
[18398.251139] usb usb1: Not yet implemented
[18398.251140] usb usb1: Not yet implemented
[18398.258699] usb usb1: Not yet implemented
[18398.258706] usb usb1: Not yet implemented
[18398.259611] usb usb1: Not yet implemented
[18403.254986] vhci_get_frame_number: 8579 callbacks suppressed
[18403.254989] usb usb1: Not yet implemented
[18403.255789] usb usb1: Not yet implemented
[18403.256147] usb usb1: Not yet implemented
[18403.256154] usb usb1: Not yet implemented
[18403.256156] usb usb1: Not yet implemented
[18403.256240] vhci_hcd: unlink->seqnum 57473
[18403.256241] vhci_hcd: urb->status -104
[18403.256243] vhci_hcd: unlink->seqnum 57474
[18403.256243] vhci_hcd: urb->status -104
[18403.256244] vhci_hcd: unlink->seqnum 57475
[18403.256245] vhci_hcd: urb->status -104
[18403.256804] usb usb1: Not yet implemented
[18403.259806] usb usb1: Not yet implemented
[18403.260563] usb usb1: Not yet implemented
[18403.260754] usb usb1: Not yet implemented
[18403.261094] usb usb1: Not yet implemented
[18403.265383] vhci_hcd: unlink->seqnum 57486
[18403.265385] vhci_hcd: urb->status -104
[18403.265387] vhci_hcd: unlink->seqnum 57487
[18403.265387] vhci_hcd: urb->status -104
[18403.265388] vhci_hcd: unlink->seqnum 57488
[18403.265389] vhci_hcd: urb->status -104
[18403.265390] vhci_hcd: unlink->seqnum 57489
[18403.265390] vhci_hcd: urb->status -104
[18403.265393] vhci_hcd: unlink->seqnum 57490
[18403.265393] vhci_hcd: urb->status -104
[18403.265394] vhci_hcd: unlink->seqnum 57491
[18403.265394] vhci_hcd: urb->status -104
[18403.265395] vhci_hcd: unlink->seqnum 57492
[18403.265396] vhci_hcd: urb->status -104
[18403.265396] vhci_hcd: unlink->seqnum 57493
[18403.265397] vhci_hcd: urb->status -104
[18403.265398] vhci_hcd: unlink->seqnum 57494
[18403.265398] vhci_hcd: urb->status -104
[18403.265399] vhci_hcd: unlink->seqnum 57495
[18403.265399] vhci_hcd: urb->status -104
[18403.265401] vhci_hcd: unlink->seqnum 57496
[18403.265401] vhci_hcd: urb->status -104
[18403.265402] vhci_hcd: unlink->seqnum 57497
[18403.265402] vhci_hcd: urb->status -104
 

On the server, when I plug in the device:

[12277.988176] usb 1-1.4: new full-speed USB device number 9 using dwc_otg
[12278.091062] usb 1-1.4: New USB device found, idVendor=0d8c, idProduct=000e, bcdDevice= 1.00
[12278.091101] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[12278.091124] usb 1-1.4: Product: Generic USB Audio Device
 

On the server, when I attach the device to the Linux VM:

[12344.872223] usb 1-1.4: reset full-speed USB device number 9 using dwc_otg
 

Server and client use the latest version 5.6.0. Other devices work just fine. Anything I can do to further diagnose or fix it?

Cheers,

Chris

 

 

#2

Sound support is a bit patchy on linux.

What kernel are you running inside the vm?

uname -a

It really needs to be in the 6.x for the best chance of working.

#3

$ uname -a
Linux 6.2.0-31-generic #31~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Aug 16 13:45:26 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
 

Funny thing is, I am positive that this was working several months ago on the same machine. BTW after a reboot, it is still not working but dmesg has changed somewhat:

[   75.108735] usb 1-1: SetAddress Request (2) to port 0
[   75.143840] usb 1-1: New USB device found, idVendor=0d8c, idProduct=000e, bcdDevice= 1.00
[   75.143844] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   75.143845] usb 1-1: Product: Generic USB Audio Device   
[   75.160496] cm109: Keymap for Komunikate KIP1000 phone loaded
[   75.160590] input: CM109 USB driver as /devices/platform/vhci_hcd.0/usb1/1-1/1-1:1.3/input/input6
[   75.160869] usbcore: registered new interface driver cm109
[   75.160871] cm109: CM109 phone driver: 20080805 (C) Alfred E. Heggestad
[   75.166034] usbcore: registered new interface driver usbhid
[   75.166036] usbhid: USB HID core driver
[   75.193240] mc: Linux media interface: v0.10
[   75.384291] usbcore: registered new interface driver snd-usb-audio
[   75.508418] usb usb1: Not yet implemented
[   75.508433] usb usb1: Not yet implemented
[   75.508435] usb usb1: Not yet implemented
[   75.508438] usb usb1: Not yet implemented
[   75.508450] usb usb1: Not yet implemented
[   75.508453] usb usb1: Not yet implemented
[   75.508454] usb usb1: Not yet implemented
[   75.517371] usb usb1: Not yet implemented
[   75.517375] usb usb1: Not yet implemented
[   75.518132] usb usb1: Not yet implemented
 

 

#4

Those messages "not implemented" etc... are all OK and shouldn't affect the sound pass-through.

What software are you using to listen to the sound? What is it actually doing....does it make any sound or is it silence?

#5

The device is not being fully registered and the dummy sound output keeps being used. The audio mixer shows only the dummy sound device in the "Virtual Output Devices" section but the "Hardware Output Devices" section stays empty. To test, I play a video in the browser and it is completely silent.

#6

Ok i dont know the problem.

 I do notice that my ubuntu is 

Linux ubuntu 6.5.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue Mar 12 10:22:43 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

It might be worth updating the kernel on ubuntu to see if it helps

 

#7

Upgraded the kernel to 6.5 but no change. Oh, well, will look into a workaround, using xrdp for audio forwarding.