diff --git a/libs/backends/alsa/alsa_audiobackend.cc b/libs/backends/alsa/alsa_audiobackend.cc index ecbeb5a058..c1b3da58b6 100644 --- a/libs/backends/alsa/alsa_audiobackend.cc +++ b/libs/backends/alsa/alsa_audiobackend.cc @@ -1636,7 +1636,7 @@ AlsaAudioBackend::register_system_midi_ports(const std::string device) delete mout; } else { char tmp[64]; - snprintf(tmp, sizeof(tmp), "system:midi_playback_%u", elf_hash (i->first + i->second)); + snprintf(tmp, sizeof(tmp), "system:midi_playback_%u", elf_hash (i->first)); PortHandle p = add_port(std::string(tmp), DataType::MIDI, static_cast(IsInput | IsPhysical | IsTerminal)); if (!p) { mout->stop(); @@ -1675,7 +1675,7 @@ AlsaAudioBackend::register_system_midi_ports(const std::string device) delete midin; } else { char tmp[64]; - snprintf(tmp, sizeof(tmp), "system:midi_capture_%u", elf_hash (i->first + i->second)); + snprintf(tmp, sizeof(tmp), "system:midi_capture_%u", elf_hash (i->first)); PortHandle p = add_port(std::string(tmp), DataType::MIDI, static_cast(IsOutput | IsPhysical | IsTerminal)); if (!p) { midin->stop();