Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 174119
b: refs/heads/master
c: b1d33f4
h: refs/heads/master
i:
  174117: d1f6260
  174115: 954c741
  174111: 49e8390
v: v3
  • Loading branch information
Stefan Richter authored and Mauro Carvalho Chehab committed Dec 5, 2009
1 parent 0f8415f commit a5bb4f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a8aeb7836edac3e0cce1286eefbca793c54cbad0
refs/heads/master: b1d33f4b0ae319ca79b6bafd6e815cbe0dcd7c14
13 changes: 4 additions & 9 deletions trunk/drivers/media/dvb/firewire/firedtv-fw.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,14 @@ struct firedtv_receive_context {
static int queue_iso(struct firedtv_receive_context *ctx, int index)
{
struct fw_iso_packet p;
int err;

p.payload_length = MAX_PACKET_SIZE;
p.interrupt = !(ctx->interrupt_packet & (IRQ_INTERVAL - 1));
p.interrupt = !(++ctx->interrupt_packet & (IRQ_INTERVAL - 1));
p.skip = 0;
p.header_length = ISO_HEADER_SIZE;

err = fw_iso_context_queue(ctx->context, &p, &ctx->buffer,
index * MAX_PACKET_SIZE);
if (!err)
ctx->interrupt_packet++;

return err;
return fw_iso_context_queue(ctx->context, &p, &ctx->buffer,
index * MAX_PACKET_SIZE);
}

static void handle_iso(struct fw_iso_context *context, u32 cycle,
Expand Down Expand Up @@ -150,7 +145,7 @@ static int start_iso(struct firedtv *fdtv)
if (err)
goto fail_context_destroy;

ctx->interrupt_packet = 1;
ctx->interrupt_packet = 0;
ctx->current_packet = 0;

for (i = 0; i < N_PAGES; i++)
Expand Down

0 comments on commit a5bb4f9

Please sign in to comment.