From cff6e932024913257326fc095e82d6c37b4d314b Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Wed, 14 Aug 2024 04:47:48 +0300 Subject: [PATCH] audio/drumstick: add actual MIDI devices names --- ...atch-library_rt-backends_oss-in_ossinput__p.cpp | 14 ++++++++++++++ ...patch-library_rt-backends_oss-out_ossoutput.cpp | 14 ++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 audio/drumstick/files/patch-library_rt-backends_oss-in_ossinput__p.cpp create mode 100644 audio/drumstick/files/patch-library_rt-backends_oss-out_ossoutput.cpp diff --git a/audio/drumstick/files/patch-library_rt-backends_oss-in_ossinput__p.cpp b/audio/drumstick/files/patch-library_rt-backends_oss-in_ossinput__p.cpp new file mode 100644 index 0000000000000..d4365c67bb649 --- /dev/null +++ b/audio/drumstick/files/patch-library_rt-backends_oss-in_ossinput__p.cpp @@ -0,0 +1,14 @@ +--- library/rt-backends/oss-in/ossinput_p.cpp ++++ library/rt-backends/oss-in/ossinput_p.cpp +@@ -43,9 +43,9 @@ + QDir dir("/dev"); + QStringList filters; + m_advanced = advanced; +- filters << "dmmidi*" << "admmidi*"; ++ filters << "midi*" << "umidi*"; + if (advanced) { +- filters << "midi*" << "amidi*"; ++ filters << "amidi*" << "admmidi*" << "dmmidi*"; + } + dir.setNameFilters(filters); + dir.setFilter(QDir::System); diff --git a/audio/drumstick/files/patch-library_rt-backends_oss-out_ossoutput.cpp b/audio/drumstick/files/patch-library_rt-backends_oss-out_ossoutput.cpp new file mode 100644 index 0000000000000..45f7197ef26d4 --- /dev/null +++ b/audio/drumstick/files/patch-library_rt-backends_oss-out_ossoutput.cpp @@ -0,0 +1,14 @@ +--- library/rt-backends/oss-out/ossoutput.cpp ++++ library/rt-backends/oss-out/ossoutput.cpp +@@ -53,9 +53,9 @@ + QDir dir("/dev"); + QStringList filters; + m_advanced = advanced; +- filters << "dmmidi*" << "admmidi*"; ++ filters << "midi*" << "umidi*"; + if (advanced) { +- filters << "midi*" << "amidi*"; ++ filters << "amidi*" << "admmidi*" << "dmmidi*"; + } + dir.setNameFilters(filters); + dir.setFilter(QDir::System);