Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 25142
b: refs/heads/master
c: 731f902
h: refs/heads/master
v: v3
  • Loading branch information
Ricardo Cerqueira authored and Mauro Carvalho Chehab committed Apr 2, 2006
1 parent 83925d9 commit 49af30a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 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: 8dbc5ece9a6a424eb03f1eeee2774c42d8db1ce4
refs/heads/master: 731f902edaf3ed16f8ed9e92d79e3d0d17af608f
12 changes: 9 additions & 3 deletions trunk/drivers/media/video/video-buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit 49af30a

Please sign in to comment.