Skip to content

Commit

Permalink
V4L/DVB (13671): sh_mobile_ceu_camera: Remove frame size page alignment
Browse files Browse the repository at this point in the history
This patch updates the SuperH Mobile CEU driver to
not page align the frame size. Useful in the case of
USERPTR with non-page aligned frame sizes and offsets.

Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Magnus Damm authored and Mauro Carvalho Chehab committed Dec 16, 2009
1 parent 858424b commit e6641c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/media/video/sh_mobile_ceu_camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ static int sh_mobile_ceu_videobuf_setup(struct videobuf_queue *vq,
if (bytes_per_line < 0)
return bytes_per_line;

*size = PAGE_ALIGN(bytes_per_line * icd->user_height);
*size = bytes_per_line * icd->user_height;

if (0 == *count)
*count = 2;

if (pcdev->video_limit) {
while (*size * *count > pcdev->video_limit)
while (PAGE_ALIGN(*size) * *count > pcdev->video_limit)
(*count)--;
}

Expand Down

0 comments on commit e6641c8

Please sign in to comment.