mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
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: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
03c29680d4
commit
898732d1f1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user