summaryrefslogtreecommitdiffstats
path: root/sound/firewire/amdtp-am824.c
diff options
context:
space:
mode:
authorTakashi Iwai2019-07-01 17:01:00 +0200
committerTakashi Iwai2019-07-01 17:01:55 +0200
commitb5c21c84705dbd96a0fff930d33022a17910b4f4 (patch)
treea080aa4383c8f4ffb91225d234ac9b530b2ff0fa /sound/firewire/amdtp-am824.c
parentALSA: hda: Fix a headphone detection issue when using SOF (diff)
parentALSA: firewire-lib/fireworks: fix miss detection of received MIDI messages (diff)
downloadkernel-qcow2-linux-b5c21c84705dbd96a0fff930d33022a17910b4f4.tar.gz
kernel-qcow2-linux-b5c21c84705dbd96a0fff930d33022a17910b4f4.tar.xz
kernel-qcow2-linux-b5c21c84705dbd96a0fff930d33022a17910b4f4.zip
Merge branch 'for-linus' into for-next
This back-merge is necessary for adjusting the latest FireWire fix with the recent refactoring in 5.3 development branch. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/amdtp-am824.c')
-rw-r--r--sound/firewire/amdtp-am824.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/amdtp-am824.c b/sound/firewire/amdtp-am824.c
index 7019a2143581..623d014c0e7e 100644
--- a/sound/firewire/amdtp-am824.c
+++ b/sound/firewire/amdtp-am824.c
@@ -321,7 +321,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->ctx_data.tx.first_dbc + s->data_block_counter + f) % 8;
b = (u8 *)&buffer[p->midi_position];
len = b[0] - 0x80;