提交 731f902e 编写于 作者: R Ricardo Cerqueira 提交者: Mauro Carvalho Chehab

V4L/DVB (3620): Fix video-buf PCI wrappers

After the recent video-buf "generic" adaptation, the PCI wrappers got
completely broken, and all of the DMA sound modules stopped working (and
failed with an oops)
Signed-off-by: NRicardo Cerqueira <v4l@cerqueira.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 8dbc5ece
......@@ -399,19 +399,25 @@ void videobuf_queue_pci(struct videobuf_queue* q)
int videobuf_pci_dma_map(struct pci_dev *pci,struct videobuf_dmabuf *dma)
{
struct videobuf_queue q;
struct videobuf_queue_ops qops;
q.dev=pci;
q.ops->vb_map_sg=(vb_map_sg_t *)pci_unmap_sg;
qops.vb_map_sg=(vb_map_sg_t *)pci_map_sg;
qops.vb_unmap_sg=(vb_map_sg_t *)pci_unmap_sg;
q.ops = &qops;
return (videobuf_dma_unmap(&q,dma));
return (videobuf_dma_map(&q,dma));
}
int videobuf_pci_dma_unmap(struct pci_dev *pci,struct videobuf_dmabuf *dma)
{
struct videobuf_queue q;
struct videobuf_queue_ops qops;
q.dev=pci;
q.ops->vb_map_sg=(vb_map_sg_t *)pci_unmap_sg;
qops.vb_map_sg=(vb_map_sg_t *)pci_map_sg;
qops.vb_unmap_sg=(vb_map_sg_t *)pci_unmap_sg;
q.ops = &qops;
return (videobuf_dma_unmap(&q,dma));
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册