From 0e4a4282d61d554ce43c9e4f454fe60b56ad182b Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Wed, 11 May 2011 10:48:24 +0200 Subject: [PATCH] --- yaml --- r: 248171 b: refs/heads/master c: 898732d1f1c7181fd3e94e7d7a784edb48d09d95 h: refs/heads/master i: 248169: d7a181a01f8d24d653e3e69fe139207d17e8a5fa 248167: 3bc33e85518736a5f117ab713137205271386eef v: v3 --- [refs] | 2 +- trunk/sound/firewire/isight.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 5b9fedb95b35..db738381806a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 03c29680d49662859d14d64f8673550fa3fb2ed1 +refs/heads/master: 898732d1f1c7181fd3e94e7d7a784edb48d09d95 diff --git a/trunk/sound/firewire/isight.c b/trunk/sound/firewire/isight.c index 0230605c917e..4e334919a70f 100644 --- a/trunk/sound/firewire/isight.c +++ b/trunk/sound/firewire/isight.c @@ -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; }