alsa-project / alsa-utils

The Advanced Linux Sound Architecture (ALSA) - utilities
GNU General Public License v2.0
197 stars 136 forks source link

aseqdump -u1 can't receive MT4 messages #262

Closed masahirokakishita closed 5 months ago

masahirokakishita commented 6 months ago

Hello,

aseqdump version 1.2.11 karnel 6.5.0

Sending MT4 messages from ProtoZoA to Linux PC, the command, aseqdump -u1 can't receive messages. The command, aseqdump -u0 and aseqdump -u2 can receive these messages.

aseqdump -u 2 -p 24:0
 24:1   Group  1, Note on                 0, note 67, velocity 0xfedc, attr type = 66, data = 0xba98
 24:1   Group  1, Note off                0, note 67, velocity 0x1234, attr type = 66, data = 0x5678
 24:1   Group  1, Note on                 0, note 65, velocity 0x2200, attr type = 1, data = 0x3344
 24:1   Group  1, Note off                0, note 65, velocity 0x5500, attr type = 0, data = 0x6677
 24:1   Group  1, Note on                 0, note 63, velocity 0xffff, attr type = 0, data = 0x0
 24:1   Group  1, Note off                0, note 63, velocity 0x8000, attr type = 0, data = 0x0

aseqdump -u 0 -p 24:0
 24:1   Note on                 0, note 67, velocity 127
 24:1   Note off                0, note 67, velocity 9
 24:1   Note on                 0, note 65, velocity 17
 24:1   Note off                0, note 65, velocity 42
 24:1   Note on                 0, note 63, velocity 127
 24:1   Note off                0, note 63, velocity 64
aseqdump -u 1 -p 24:0
tiwai commented 5 months ago

Sorry for the relate reply, as I've been off in the last weeks.

I confirmed the issue, and it was a leftover of the old artifact. The trivial fix is below. I'm going to submit and merge the fix to the kernel.

ump-midi2-to-midi1-fix.patch.txt

tiwai commented 5 months ago

Now merged in the commit f25f17dc5c6a5e3f2014d44635f0c0db45224efe