Skip to content

Commit

Permalink
solo6x10: Updates to videobuf-dma-sg functions for latest kernel
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Collins <bcollins@bluecherry.net>
  • Loading branch information
Ben Collins committed Nov 5, 2010
1 parent f62de9b commit 319fb3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions drivers/staging/solo6x10/solo6010-v4l2-enc.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ static int solo_enc_buf_prepare(struct videobuf_queue *vq,
int rc = videobuf_iolock(vq, vb, NULL);
if (rc < 0) {
struct videobuf_dmabuf *dma = videobuf_to_dma(vb);
videobuf_dma_unmap(vq, dma);
videobuf_dma_unmap(vq->dev, dma);
videobuf_dma_free(dma);
vb->state = VIDEOBUF_NEEDS_INIT;
return rc;
Expand All @@ -840,7 +840,7 @@ static void solo_enc_buf_release(struct videobuf_queue *vq,
{
struct videobuf_dmabuf *dma = videobuf_to_dma(vb);

videobuf_dma_unmap(vq, dma);
videobuf_dma_unmap(vq->dev, dma);
videobuf_dma_free(dma);
vb->state = VIDEOBUF_NEEDS_INIT;
}
Expand Down Expand Up @@ -886,7 +886,7 @@ static int solo_enc_open(struct file *file)
&solo_enc->lock,
V4L2_BUF_TYPE_VIDEO_CAPTURE,
V4L2_FIELD_INTERLACED,
sizeof(struct videobuf_buffer), fh);
sizeof(struct videobuf_buffer), fh, NULL);

return 0;
}
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/solo6x10/solo6010-v4l2.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ static int solo_buf_prepare(struct videobuf_queue *vq,
int rc = videobuf_iolock(vq, vb, NULL);
if (rc < 0) {
struct videobuf_dmabuf *dma = videobuf_to_dma(vb);
videobuf_dma_unmap(vq, dma);
videobuf_dma_unmap(vq->dev, dma);
videobuf_dma_free(dma);
vb->state = VIDEOBUF_NEEDS_INIT;
return rc;
Expand All @@ -489,7 +489,7 @@ static void solo_buf_release(struct videobuf_queue *vq,
{
struct videobuf_dmabuf *dma = videobuf_to_dma(vb);

videobuf_dma_unmap(vq, dma);
videobuf_dma_unmap(vq->dev, dma);
videobuf_dma_free(dma);
vb->state = VIDEOBUF_NEEDS_INIT;
}
Expand Down Expand Up @@ -539,7 +539,7 @@ static int solo_v4l2_open(struct file *file)
&solo_dev->pdev->dev, &fh->slock,
V4L2_BUF_TYPE_VIDEO_CAPTURE,
SOLO_DISP_PIX_FIELD,
sizeof(struct videobuf_buffer), fh);
sizeof(struct videobuf_buffer), fh, NULL);

return 0;
}
Expand Down

0 comments on commit 319fb3b

Please sign in to comment.