Commit 898732d1 authored by Clemens Ladisch's avatar Clemens Ladisch Committed by Takashi Iwai
Browse files

ALSA: isight: fix packet requeueing



After handling a received packet, we want to resubmit the same packet,
so do not increase the packet index too early.

Signed-off-by: default avatarClemens Ladisch <clemens@ladisch.de>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 03c29680
......@@ -198,9 +198,6 @@ static void isight_packet(struct fw_iso_context *context, u32 cycle,
}
}
if (++index >= QUEUE_LENGTH)
index = 0;
err = fw_iso_context_queue(isight->context, &audio_packet,
&isight->buffer.iso_buffer,
isight->buffer.packets[index].offset);
......@@ -211,6 +208,8 @@ static void isight_packet(struct fw_iso_context *context, u32 cycle,
return;
}
if (++index >= QUEUE_LENGTH)
index = 0;
isight->packet_index = index;
}
......
Supports Markdown
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