]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - sound/firewire/amdtp-am824.c
Merge tag 'sound-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
[linux.git] / sound / firewire / amdtp-am824.c
index cc6eb30f03a2acb29ad994fbca28c5c4768bb37d..71168728940a0f115dc3909761db9759291f8572 100644 (file)
@@ -320,7 +320,7 @@ static void read_midi_messages(struct amdtp_stream *s,
        u8 *b;
 
        for (f = 0; f < frames; f++) {
-               port = (s->data_block_counter + f) % 8;
+               port = (8 - s->tx_first_dbc + s->data_block_counter + f) % 8;
                b = (u8 *)&buffer[p->midi_position];
 
                len = b[0] - 0x80;