Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect max packet size reported for MIDI when running in FS mode #371

Open
Albent902 opened this issue Mar 1, 2024 · 1 comment
Open

Comments

@Albent902
Copy link

If MIDI is enabled in "xua_conf.h", two problems are found:
Problem 1: The MIDI packet at full speed should be 64 bytes
Problem 2: If no driver is installed, the device will be abnormal in the window. USB descriptors cannot be viewed using the USB Viewer.

Try to return UAC(1.0), or change AUDIO_CLASS=1, and it still won't work.
MIDI should be a subclass of audio, and in our other devices, MIDI devices never need to install drivers. We expect that XMOS will also work.

Please let us know how to modify, thank you !

@xross
Copy link
Collaborator

xross commented Jul 2, 2024

Hello.

  • The descriptors should be modified at run time for 64bytes in fs mode. Similar to

    cfgDesc_Audio2.Audio_CS_Control_Int.Audio_Out_InputTerminal.bNrChannels = NUM_USB_CHAN_OUT_FS;
    . We'll look to patch this up in the next release.

  • The design doesn't support MIDI for Audio Class 1.0 mode. Please raise a separate "enhancement" issue. This isn't something that has been requested in the past, AFAIK.

@xross xross changed the title In the window, MIDI devices cannot be used without drivers Incorrect max packet size reported for MIDI when running in FS mode Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants