After handling a received packet, we want to resubmit the same packet,
so do not increase the packet index too early.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
}
}
- if (++index >= QUEUE_LENGTH)
- index = 0;
-
err = fw_iso_context_queue(isight->context, &audio_packet,
&isight->buffer.iso_buffer,
isight->buffer.packets[index].offset);
return;
}
+ if (++index >= QUEUE_LENGTH)
+ index = 0;
isight->packet_index = index;
}