public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* OpenProtocol() giving me EFI_INVALID_PARAMETER
@ 2021-07-17 16:41 Ethin Probst
  2021-07-17 16:55 ` Andrew Fish
  0 siblings, 1 reply; 8+ messages in thread
From: Ethin Probst @ 2021-07-17 16:41 UTC (permalink / raw)
  To: devel; +Cc: Leif Lindholm (Nuvia address), Andrew Fish, Ray Ni

Hey all,

So my UsbAudio.efi app has hit a bit of a roadblock. This code:

```C
    status = st->BootServices->OpenProtocol(handles[i],
&gEfiUsbIoProtocolGuid, (void**)&UsbIo, imageHandle, NULL,
EFI_OPEN_PROTOCOL_EXCLUSIVE);
    if (EFI_ERROR(status)) {
      Print(L"%r, skipping\n", status);
      continue;
    }
```
Is giving me EFI_INVALID_PARAMETER and I don't know why. I don't think
I'm violating any of its constraints, according to the specification,
and I haven't touched this code since it was written. It also happens
irregularly: sometimes it happens on the USB audio streaming device,
or if I have a device plugged in it might happen on that device, you
get the idea. But it doesn't consistently fail. Does anybody have any
idea what's going on?

-- 
Signed,
Ethin D. Probst

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-07-17 21:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-17 16:41 OpenProtocol() giving me EFI_INVALID_PARAMETER Ethin Probst
2021-07-17 16:55 ` Andrew Fish
2021-07-17 17:01   ` Ethin Probst
2021-07-17 17:06     ` Ethin Probst
2021-07-17 18:00       ` [edk2-devel] " Andrew Fish
2021-07-17 18:10         ` Ethin Probst
2021-07-17 18:34           ` Andrew Fish
2021-07-17 21:00             ` Ethin Probst

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox