homebrew-qemu-virgl icon indicating copy to clipboard operation
homebrew-qemu-virgl copied to clipboard

Passthrough internal camera and microphone?

Open DUOLabs333 opened this issue 3 years ago • 7 comments

lsusb doesn't show anything so is it possible?

DUOLabs333 avatar Aug 20 '21 13:08 DUOLabs333

Yes, it's possible. Instead of the lsusb on your host, you should use system_profiler SPUSBDataType and find product id and vendor id of your usb device. Then pass them as:

-device usb-host,vendorid=0x534d,productid=0x2109

Where you should substitute 0x534d and 0x2109 for your own device numbers. See this post on stack overflow as an example: https://stackoverflow.com/questions/65816169/how-to-use-usb-with-qemu-on-a-mac-host

knazarov avatar Aug 22 '21 15:08 knazarov

All that shows up are the two USB 3 ports -- I think it is because Apple stopped using USB cameras for their Macbook Air.

USB:

    USB 3.1 Bus:

      Host Controller Driver: AppleT8103USBXHCI

    USB 3.1 Bus:

      Host Controller Driver: AppleT8103USBXHCI

Unless you mean those are the camera and microphone.

DUOLabs333 avatar Aug 22 '21 19:08 DUOLabs333

Oh, you mean the on-board camera. Then yes, it's unlikely that you'll be able to pass it through to the guest. With microphone it should be possible through the sound system emulation that qemu has, but the onboard camera needs a special-purpose emulator.

knazarov avatar Aug 22 '21 19:08 knazarov

Regular usb webcams should be fine though

knazarov avatar Aug 22 '21 19:08 knazarov

The microphone doesn't work, though audio does work.

DUOLabs333 avatar Aug 22 '21 19:08 DUOLabs333

@DUOLabs333 you're right. Qemu doesn't seem to have support for mic or webcam input. And at this point, I don't think it will happen unfortunately unless there is a volunteer to get it working.

knazarov avatar Sep 25 '21 19:09 knazarov

Would be interested in this also, tried all the USB passthrough methods I could find, none worked unfortunately

ericcurtin avatar Jan 06 '22 12:01 ericcurtin