I managed to partially test this method out on Atergos Linux, when running AGS game under Wine. It reported problem of DIGMID patches not found, but after I did one of the solutions (either unpacking patches.dat or Gravis MIDI "pat" files in the game folder) it stopped doing that.
Although it still failed to create digital driver, but error was now different, and probably unrelated to DIGMID problem. One thing for sure, both methods mentioned above seem to have similar effect.
EDIT: I should probably also note that when running Linux port itself, it produces no midi-related errors, but MIDI music does not play at all (although digital sounds do). I think there were reports of MIDI not playing on Linux before, but idk if that's a global issue or affects particular users. Putting patches file into game directory produces no effect.