Merge branch 'fix/firewire' into for-linus

This commit is contained in:
Takashi Iwai 2013-11-26 18:37:40 +01:00
Родитель 873ce8ad50 82755abfe8
Коммит 049da9e8f8
1 изменённых файлов: 6 добавлений и 9 удалений

Просмотреть файл

@ -434,17 +434,14 @@ static void queue_out_packet(struct amdtp_out_stream *s, unsigned int cycle)
return; return;
index = s->packet_index; index = s->packet_index;
/* this module generate empty packet for 'no data' */
syt = calculate_syt(s, cycle); syt = calculate_syt(s, cycle);
if (!(s->flags & CIP_BLOCKING)) { if (!(s->flags & CIP_BLOCKING))
data_blocks = calculate_data_blocks(s); data_blocks = calculate_data_blocks(s);
} else { else if (syt != 0xffff)
if (syt != 0xffff) { data_blocks = s->syt_interval;
data_blocks = s->syt_interval; else
} else { data_blocks = 0;
data_blocks = 0;
syt = 0xffffff;
}
}
buffer = s->buffer.packets[index].buffer; buffer = s->buffer.packets[index].buffer;
buffer[0] = cpu_to_be32(ACCESS_ONCE(s->source_node_id_field) | buffer[0] = cpu_to_be32(ACCESS_ONCE(s->source_node_id_field) |