Re: [edk2-devel] EFI_AUDIO_OUTPUT_PROTOCOL: assistance with VirtIO initialization

2021-07-06 Thread Michael Brown
On 02/07/2021 19:22, Ethin Probst wrote: Update: I just realized I'd made a typo -- the unknown request is actually a get_min request. On 7/2/21, Ethin Probst wrote: Setup Data bmRequestType: 0xa1 1... = Direction: Device-to-host .01. = Type: Class (0x1)

Re: [edk2-devel] EFI_AUDIO_OUTPUT_PROTOCOL: assistance with VirtIO initialization

2021-07-02 Thread Ethin Probst
Update: I just realized I'd made a typo -- the unknown request is actually a get_min request. On 7/2/21, Ethin Probst wrote: > Thank you for all that information, both of you. I didn't realize that > VirtIO sound would be so complicated. The specification seemed simple > enough -- but, alas, all

Re: [edk2-devel] EFI_AUDIO_OUTPUT_PROTOCOL: assistance with VirtIO initialization

2021-07-02 Thread Ethin Probst
Thank you for all that information, both of you. I didn't realize that VirtIO sound would be so complicated. The specification seemed simple enough -- but, alas, all things seem simple until you actually go and try to implement them. I did manage to retrieve a packet dump, from both myself and fro

Re: [edk2-devel] EFI_AUDIO_OUTPUT_PROTOCOL: assistance with VirtIO initialization

2021-07-02 Thread Michael Brown
On 02/07/2021 10:41, Michael Brown wrote: UsbIo->UsbControlTransfer(UsbIo, &Req, EfiUsbDataIn,   PcdGet32 (PcdUsbTransferTimeoutValue),   &Header, sizeof(Header), &Status); (Error handling etc omitted for brevity) That would get you the first 8

Re: [edk2-devel] EFI_AUDIO_OUTPUT_PROTOCOL: assistance with VirtIO initialization

2021-07-02 Thread Michael Brown
On 01/07/2021 19:10, Ethin Probst wrote: The first: I don't know how to retrieve the descriptors on the UEFI API. I've looked at the Chaos Key DXE, if memory serves, or the display port one -- one of the two. One of them contained a ReadDescriptor() function, and so I've borrowed that, but that d

Re: [edk2-devel] EFI_AUDIO_OUTPUT_PROTOCOL: assistance with VirtIO initialization

2021-07-02 Thread Laszlo Ersek
On 07/01/21 20:10, Ethin Probst wrote: > The first: I don't know how to retrieve the descriptors on the UEFI > API. I've looked at the Chaos Key DXE, if memory serves, or the > display port one -- one of the two. One of them contained a > ReadDescriptor() function, and so I've borrowed that, but th

Re: [edk2-devel] EFI_AUDIO_OUTPUT_PROTOCOL: assistance with VirtIO initialization

2021-07-02 Thread Laszlo Ersek
On 07/01/21 01:01, Ethin Probst wrote: > Hi all, > So Leif and I have been working on USB Audio but we've run into a snag. We've > encountered a problem -- neither of us knows enough about USB to figure out > how to get the class-specific AC interface descriptors, and those contain > vital infor

Re: [edk2-devel] EFI_AUDIO_OUTPUT_PROTOCOL: assistance with VirtIO initialization

2021-07-01 Thread Ethin Probst
The first: I don't know how to retrieve the descriptors on the UEFI API. I've looked at the Chaos Key DXE, if memory serves, or the display port one -- one of the two. One of them contained a ReadDescriptor() function, and so I've borrowed that, but that doesn't really help much. On 7/1/21, Michae

Re: [edk2-devel] EFI_AUDIO_OUTPUT_PROTOCOL: assistance with VirtIO initialization

2021-07-01 Thread Michael Brown
On 01/07/2021 00:01, Ethin Probst wrote: So Leif and I have been working on USB Audio but we've run into a snag. We've encountered a problem -- neither of us knows enough about USB to figure out how to get the class-specific AC interface descriptors, and those contain vital information that I n

[edk2-devel] EFI_AUDIO_OUTPUT_PROTOCOL: assistance with VirtIO initialization

2021-06-30 Thread Ethin Probst
Hi all, So Leif and I have been working on USB Audio but we've run into a snag. We've encountered a problem -- neither of us knows enough about USB to figure out how to get the class-specific AC interface descriptors, and those contain vital information that I need to be able to control the audi