Implementing Valid Alternate Interface

Discussions about USB Audio on XMOS devices
User avatar
OneOfTheDaves
Newbie
Posts: 1
Joined: Wed Mar 08, 2023 6:45 pm

Implementing Valid Alternate Interface

Post by OneOfTheDaves »

Implementing Valid Alternate Interface

Hi,
we have a development based on the XK-AUDIO-216-MC-AB reference design with 16 I/O, for 192kHz operation we need to choose an alternate interface that limits the I/O to 10, and manually selecting this works fine, but it is an extra step that is required when changing sample rates.
Following a conversation with one of the engineers from Apple's core audio team I believe that this process can be automated by implementing the Valid Alternate Settings Control as described in the USB class definition for audio devices 5.2.6.1.2, and I see equivalent comments in the TheSycon's Windows driver change list.
This project is based on the XK-AUDIO-216-MC-AB reference software using xTIMEcomposer 14.4.1 with no changes to endpoint0.c or usb_device.xc

Has anyone implemented this feature and can advise?

Thanks!