Skip to content

Commit

Permalink
Fix detection of Bluetooth MIDI devices
Browse files Browse the repository at this point in the history
This relaxes constraints on MIDI hardware, added in
edd6bb1

My Bluetooth MIDI device has type 0x10002, ie
SND_SEQ_PORT_TYPE_MIDI_GENERIC | SND_SEQ_PORT_TYPE_HARDWARE,
which doesn't contain the SND_SEQ_PORT_TYPE_PORT flag.

Resolves: #19747
  • Loading branch information
hpoussin committed Jan 3, 2025
1 parent 00e0f5e commit bd0b414
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ MidiDeviceList AlsaMidiInPort::availableDevices() const

int streams = SND_SEQ_OPEN_INPUT;
const unsigned int cap = SND_SEQ_PORT_CAP_SUBS_READ | SND_SEQ_PORT_CAP_READ;
const unsigned int type_hw = SND_SEQ_PORT_TYPE_PORT | SND_SEQ_PORT_TYPE_HARDWARE;
const unsigned int type_hw = SND_SEQ_PORT_TYPE_HARDWARE;
const unsigned int type_sw = SND_SEQ_PORT_TYPE_PORT | SND_SEQ_PORT_TYPE_SOFTWARE;

MidiDeviceList ret;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ std::vector<MidiDevice> AlsaMidiOutPort::availableDevices() const

int streams = SND_SEQ_OPEN_OUTPUT;
const unsigned int cap = SND_SEQ_PORT_CAP_SUBS_WRITE | SND_SEQ_PORT_CAP_WRITE;
const unsigned int type_hw = SND_SEQ_PORT_TYPE_PORT | SND_SEQ_PORT_TYPE_HARDWARE;
const unsigned int type_hw = SND_SEQ_PORT_TYPE_HARDWARE;
const unsigned int type_sw = SND_SEQ_PORT_TYPE_PORT | SND_SEQ_PORT_TYPE_SOFTWARE;

std::vector<MidiDevice> ret;
Expand Down

0 comments on commit bd0b414

Please sign in to comment.