Skip to content

Commit

Permalink
Merge branch 'fix/firewire' into for-linus
Browse files Browse the repository at this point in the history
  • Loading branch information
Takashi Iwai committed Nov 26, 2013
2 parents 873ce8a + 82755ab commit 049da9e
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions sound/firewire/amdtp.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,17 +434,14 @@ static void queue_out_packet(struct amdtp_out_stream *s, unsigned int cycle)
return;
index = s->packet_index;

/* this module generate empty packet for 'no data' */
syt = calculate_syt(s, cycle);
if (!(s->flags & CIP_BLOCKING)) {
if (!(s->flags & CIP_BLOCKING))
data_blocks = calculate_data_blocks(s);
} else {
if (syt != 0xffff) {
data_blocks = s->syt_interval;
} else {
data_blocks = 0;
syt = 0xffffff;
}
}
else if (syt != 0xffff)
data_blocks = s->syt_interval;
else
data_blocks = 0;

buffer = s->buffer.packets[index].buffer;
buffer[0] = cpu_to_be32(ACCESS_ONCE(s->source_node_id_field) |
Expand Down

0 comments on commit 049da9e

Please sign in to comment.