aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-mfc/s5p_mfc_dec.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2011-08-29 02:20:56 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-09-06 14:05:10 -0400
commitba7fcb0c954921534707f08ebc4d8beeb2eb17e7 (patch)
tree0dc9929461e4ac2af79ab5bfffb1bdac181ad6c5 /drivers/media/video/s5p-mfc/s5p_mfc_dec.c
parent035aa1475d6e4afdf97dccf6c6d6059063398b57 (diff)
[media] media: vb2: dma contig allocator: use dma_addr instread of paddr
Use the correct 'dma_addr' name for the buffer address. 'paddr' suggested that this is the physical address in system memory. For most ARM platforms these two are the same, but this is not a generic rule. 'dma_addr' will also point better to dma-mapping api. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> CC: Pawel Osciak <pawel@osciak.com> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/s5p-mfc/s5p_mfc_dec.c')
-rw-r--r--drivers/media/video/s5p-mfc/s5p_mfc_dec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_dec.c b/drivers/media/video/s5p-mfc/s5p_mfc_dec.c
index dbc94b877c8..4540dc2944e 100644
--- a/drivers/media/video/s5p-mfc/s5p_mfc_dec.c
+++ b/drivers/media/video/s5p-mfc/s5p_mfc_dec.c
@@ -824,7 +824,7 @@ static int s5p_mfc_buf_init(struct vb2_buffer *vb)
824 return 0; 824 return 0;
825 for (i = 0; i <= ctx->src_fmt->num_planes ; i++) { 825 for (i = 0; i <= ctx->src_fmt->num_planes ; i++) {
826 if (IS_ERR_OR_NULL(ERR_PTR( 826 if (IS_ERR_OR_NULL(ERR_PTR(
827 vb2_dma_contig_plane_paddr(vb, i)))) { 827 vb2_dma_contig_plane_dma_addr(vb, i)))) {
828 mfc_err("Plane mem not allocated\n"); 828 mfc_err("Plane mem not allocated\n");
829 return -EINVAL; 829 return -EINVAL;
830 } 830 }
@@ -837,13 +837,13 @@ static int s5p_mfc_buf_init(struct vb2_buffer *vb)
837 i = vb->v4l2_buf.index; 837 i = vb->v4l2_buf.index;
838 ctx->dst_bufs[i].b = vb; 838 ctx->dst_bufs[i].b = vb;
839 ctx->dst_bufs[i].cookie.raw.luma = 839 ctx->dst_bufs[i].cookie.raw.luma =
840 vb2_dma_contig_plane_paddr(vb, 0); 840 vb2_dma_contig_plane_dma_addr(vb, 0);
841 ctx->dst_bufs[i].cookie.raw.chroma = 841 ctx->dst_bufs[i].cookie.raw.chroma =
842 vb2_dma_contig_plane_paddr(vb, 1); 842 vb2_dma_contig_plane_dma_addr(vb, 1);
843 ctx->dst_bufs_cnt++; 843 ctx->dst_bufs_cnt++;
844 } else if (vq->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) { 844 } else if (vq->type == V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE) {
845 if (IS_ERR_OR_NULL(ERR_PTR( 845 if (IS_ERR_OR_NULL(ERR_PTR(
846 vb2_dma_contig_plane_paddr(vb, 0)))) { 846 vb2_dma_contig_plane_dma_addr(vb, 0)))) {
847 mfc_err("Plane memory not allocated\n"); 847 mfc_err("Plane memory not allocated\n");
848 return -EINVAL; 848 return -EINVAL;
849 } 849 }
@@ -855,7 +855,7 @@ static int s5p_mfc_buf_init(struct vb2_buffer *vb)
855 i = vb->v4l2_buf.index; 855 i = vb->v4l2_buf.index;
856 ctx->src_bufs[i].b = vb; 856 ctx->src_bufs[i].b = vb;
857 ctx->src_bufs[i].cookie.stream = 857 ctx->src_bufs[i].cookie.stream =
858 vb2_dma_contig_plane_paddr(vb, 0); 858 vb2_dma_contig_plane_dma_addr(vb, 0);
859 ctx->src_bufs_cnt++; 859 ctx->src_bufs_cnt++;
860 } else { 860 } else {
861 mfc_err("s5p_mfc_buf_init: unknown queue type\n"); 861 mfc_err("s5p_mfc_buf_init: unknown queue type\n");