mirror of
https://github.com/adulau/aha.git
synced 2024-12-27 19:26:25 +00:00
V4L/DVB (13671): sh_mobile_ceu_camera: Remove frame size page alignment
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>
This commit is contained in:
parent
858424b998
commit
e6641c80b0
1 changed files with 2 additions and 2 deletions
|
@ -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)--;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue