Commit 3c194923 authored by Takashi Sakamoto's avatar Takashi Sakamoto Committed by Takashi Iwai

ALSA: firewire-lib: fix data block counter for incoming packet without CIP header

The value of data block counter is not calculated for incoming packet
without CIP header. This commit fixes the bug.

Fixes: 947b437e ("ALSA: firewire-lib: unify packet handler for IR context")
Signed-off-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent b18f0cfa
......@@ -674,6 +674,8 @@ static int handle_in_packet(struct amdtp_stream *s, unsigned int cycle,
cip_header = NULL;
data_blocks = payload_length / 4 / s->data_block_quadlets;
syt = 0;
s->data_block_counter =
(s->data_block_counter + data_blocks) & 0xff;
}
trace_amdtp_packet(s, cycle, cip_header, payload_length, data_blocks,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment