rsta2 / circle

A C++ bare metal environment for Raspberry Pi with USB (32 and 64 bit)

Home Page:https://circle-rpi.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make USB gadget vendor and device strings configurable

probonopd opened this issue · comments

Currently, REAPER (on WINE) shows MiniDexed as "MIDI Gadget MIDI 1".

We would like to rename "MIDI Gadget MIDI 1" to "MiniDexed MIDI 1" to make it easier to find in DAWs.

Currently, we need to patch Circle like this:

# Patch Circle so that descriptive strings are used in dmesg and in DAWs
sed -i -e 's|"Circle"|"probonopd"|g' circle-stdlib/libs/circle/lib/usb/gadget/usbmidigadget.cpp
sed -i -e 's|"MIDI Gadget"|"MiniDexed"|g' circle-stdlib/libs/circle/lib/usb/gadget/usbmidigadget.cpp

https://github.com/probonopd/MiniDexed/pull/588/files

@diyelectromusic thinks that patching it on-the-fly like this is not the way to go, hence I am asking for a more official way to configure this.

Reference:

Thanks @rsta2.