提交 1e1d196b 编写于 作者: K Kristian Høgsberg 提交者: Stefan Richter

firewire: Set correct buffer lengths for dualbuffer DMA descriptor.

Signed-off-by: NKristian Høgsberg <krh@redhat.com>
Signed-off-by: NStefan Richter <stefanr@s5r6.in-berlin.de>
上级 9b32d5f3
......@@ -1583,10 +1583,7 @@ ohci_queue_iso_receive(struct fw_iso_context *base,
descriptor_branch_always);
db->first_size = cpu_to_le16(ctx->base.header_size);
db->first_req_count = cpu_to_le16(p->header_length);
db->second_req_count = cpu_to_le16(p->payload_length);
db->first_res_count = cpu_to_le16(db->first_req_count);
db->second_res_count = cpu_to_le16(db->second_req_count);
db->first_res_count = db->first_req_count;
db->first_buffer = cpu_to_le32(d_bus + sizeof *db);
if (offset + rest < PAGE_SIZE)
......@@ -1594,6 +1591,8 @@ ohci_queue_iso_receive(struct fw_iso_context *base,
else
length = PAGE_SIZE - offset;
db->second_req_count = cpu_to_le16(length);
db->second_res_count = db->second_req_count;
page_bus = page_private(buffer->pages[page]);
db->second_buffer = cpu_to_le32(page_bus + offset);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册