[wdmaudiodev] Re: Linux UAC2 gadget

  • From: Chris Fryer <chris@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
  • To: wdmaudiodev@xxxxxxxxxxxxx
  • Date: Thu, 5 Dec 2019 12:28:03 +0000

Hi Jerry,
Thanks for the input.

The device is definitely ASYNC and will need the feedback process to work properly (crosses fingers).

I'd just found your second point though.

The windows driver rejects Input TerminalType: Input Undefined 0x0200 and Output TerminalType: Output Undefined 0x0300.

Changing those to Microphone and Speaker respectively and the device driver loads fine.

Regards
Chris

On 05/12/2019 11:55, Robert Bielik wrote:

Hi Jerry,

Has this been channeled back into the linux kernel ?

Regards
/R

-----Original Message-----
From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-
bounce@xxxxxxxxxxxxx> On Behalf Of Jerry Evans
Sent: den 5 december 2019 11:49
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Re: Linux UAC2 gadget

Hi Chris



I got this working a few months back. The trick was to change the isoch
endpoints from ASYNC to SYNC as in



                 .bmAttributes = USB_ENDPOINT_XFER_ISOC |
USB_ENDPOINT_SYNC_SYNC,



For reasons I no longer recall I also did this:



                 //.bFunctionSubClass = UAC2_FUNCTION_SUBCLASS_UNDEFINED,

                 .bFunctionSubClass = UAC2_FUNCTION_DESKTOP_SPEAKER,



The resulting gadget, running on an ARM64 board, interacted with Windows
correctly.



HTH



Jerry.



From: wdmaudiodev-bounce@xxxxxxxxxxxxx <wdmaudiodev-
bounce@xxxxxxxxxxxxx> On Behalf Of Chris Fryer
Sent: 05 December 2019 07:43
To: wdmaudiodev@xxxxxxxxxxxxx
Subject: [wdmaudiodev] Linux UAC2 gadget



Hi all,
Following on from this thread from Feb '18
<https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fww
w.freelists.org%2Fpost%2Fwdmaudiodev%2FRaspberry-Pi-OTG-
Audio&data=02%7C01%7Crobert.bielik%40dirac.com%7Cea80e39e41c945f1e
72508d77970c6a9%7C266f25c575d44d978f448d816a1f6a35%7C1%7C1%7C637
111397600052766&sdata=xgtlUndXCL5SjnTBzV4pgLUyMWe%2B2bwJ5v04wR
R2uyI%3D&reserved=0>  I'm trying to get the linux usb 2.0 audio gadget
working on Windows 10.

I've added a feedback endpoint but the driver is still failing during load with:
[USBAudio2]FilterGraph::CreateSubDevice: port->Init() failed
0xc000028c(STATUS_RANGE_NOT_FOUND)

Full tracefmt output attached here.

I notice there's a comment that:
[USBAudio2]AudioFunction::ParseAcInterruptEndpoint: No AC Interrupt
endpoint present

Is that a requirement? Any pointers greatly appreciated.

Regards
Chris
The information in this email (including any attachments) may contain 
confidential and/or proprietary material. Any review, retransmission or use of 
this information by persons or entities other than the intended, authorized 
recipient is prohibited. If you received this email in error, please notify the 
sender and delete the material. For information regarding how Dirac handles 
personal data, please visit https://www.dirac.com/privacy-policy.
X3P2
EZu�޲Ǭ>�-��,j�j)m�fj�b�ׯ~���+-���J��r��zf���0vf�v*z�ު笵��zX���+�˛��-˱��m�'���r��zf���0vf�v*z�ު笵��zX���+�˛��-鹻�&�2�^��h�f���0vf�v*z��u�ڶ��~���+-���Q��`�@�81����i��0�fj�b�ׯr��

******************

WDMAUDIODEV addresses:
Post message: mailto:wdmaudiodev@xxxxxxxxxxxxx
Subscribe:    mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=subscribe
Unsubscribe:  mailto:wdmaudiodev-request@xxxxxxxxxxxxx?subject=unsubscribe
Moderator:    mailto:wdmaudiodev-moderators@xxxxxxxxxxxxx

URL to WDMAUDIODEV page:
http://www.wdmaudiodev.com/

Other related posts: