RE: UAC2 gadget not recognized on Windows 10

2018-02-10 Thread Robert Bielik
> > Kernel version is 4.9.68 (https://github.com/raspberrypi/linux , > > commit d5a3b4cab0c8eacc93e58cfa1bdbd259399caedd), the wTotalLength > > calc error is present in latest version also > > > (https://github.com/torvalds/linux/blob/master/drivers/usb/gadget/functio > n/f_uac2.c#L219) > > 4.9 is

RE: UAC2 gadget not recognized on Windows 10

2018-02-10 Thread Robert Bielik
> "Wait, never mind – I recognize that failing status code. usbaudio2.sys is > complaining that you have an asynchronous data OUT endpoint but it can’t > find a corresponding feedback endpoint." > > Unfortunately I have no idea what that means. Yet 😊 , but putting it out there > in case someone el

UHID Device Reports Do Not Generate OS Activity

2018-02-10 Thread R0b0t1
Hello, I am trying to simulate a keyboard using the uhid interface. The fake device shows up in dmesg, but attempting to press the "a" key does nothing I can see. No input appears in the active terminal, nor in an xev window. The program receives UHID_OPEN, UHID_START, and UHID_CLOSE. Many diffe

RE: UAC2 gadget not recognized on Windows 10

2018-02-10 Thread Robert Bielik
> > > > 4.9 is over a year old, can you try 4.14, or even better yet, 4.15? Just to confirm, I've tried with 4.14.18 (latest from https://github.com/raspberrypi/firmware), and the problem remains. Regards /R N�r��yb�X��ǧv�^�)޺{.n�+{��^n�r���z���h�&���G���h�(�階�ݢj"���m��

Re: USB gadget : generic functionfs function has no os_desc while rndis function has, why?

2018-02-10 Thread Jun Sun
Thanks for your reply, Krzysztof. I now understand all the fields. However, I just realize I can't really extend your example to cover my need, because your example uses RNDIS where kernel already support OS descriptor. In my case I'm preparing my own functionfs-based gadget. I suppose somewher