diff options
Diffstat (limited to 'drivers/media/platform/sh_vou.c')
-rw-r--r-- | drivers/media/platform/sh_vou.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/platform/sh_vou.c b/drivers/media/platform/sh_vou.c index 4f30341dc2ab..e5f1d4c14f2c 100644 --- a/drivers/media/platform/sh_vou.c +++ b/drivers/media/platform/sh_vou.c | |||
@@ -286,7 +286,7 @@ static int sh_vou_buf_prepare(struct videobuf_queue *vq, | |||
286 | vb->size = vb->height * bytes_per_line; | 286 | vb->size = vb->height * bytes_per_line; |
287 | if (vb->baddr && vb->bsize < vb->size) { | 287 | if (vb->baddr && vb->bsize < vb->size) { |
288 | /* User buffer too small */ | 288 | /* User buffer too small */ |
289 | dev_warn(vq->dev, "User buffer too small: [%u] @ %lx\n", | 289 | dev_warn(vq->dev, "User buffer too small: [%zu] @ %lx\n", |
290 | vb->bsize, vb->baddr); | 290 | vb->bsize, vb->baddr); |
291 | return -EINVAL; | 291 | return -EINVAL; |
292 | } | 292 | } |
@@ -302,9 +302,10 @@ static int sh_vou_buf_prepare(struct videobuf_queue *vq, | |||
302 | } | 302 | } |
303 | 303 | ||
304 | dev_dbg(vou_dev->v4l2_dev.dev, | 304 | dev_dbg(vou_dev->v4l2_dev.dev, |
305 | "%s(): fmt #%d, %u bytes per line, phys 0x%x, type %d, state %d\n", | 305 | "%s(): fmt #%d, %u bytes per line, phys %pad, type %d, state %d\n", |
306 | __func__, vou_dev->pix_idx, bytes_per_line, | 306 | __func__, vou_dev->pix_idx, bytes_per_line, |
307 | videobuf_to_dma_contig(vb), vb->memory, vb->state); | 307 | ({ dma_addr_t addr = videobuf_to_dma_contig(vb); &addr; }), |
308 | vb->memory, vb->state); | ||
308 | 309 | ||
309 | return 0; | 310 | return 0; |
310 | } | 311 | } |
@@ -442,7 +443,7 @@ static void sh_vou_configure_geometry(struct sh_vou_device *vou_dev, | |||
442 | int pix_idx, int w_idx, int h_idx) | 443 | int pix_idx, int w_idx, int h_idx) |
443 | { | 444 | { |
444 | struct sh_vou_fmt *fmt = vou_fmt + pix_idx; | 445 | struct sh_vou_fmt *fmt = vou_fmt + pix_idx; |
445 | unsigned int black_left, black_top, width_max, height_max, | 446 | unsigned int black_left, black_top, width_max, |
446 | frame_in_height, frame_out_height, frame_out_top; | 447 | frame_in_height, frame_out_height, frame_out_top; |
447 | struct v4l2_rect *rect = &vou_dev->rect; | 448 | struct v4l2_rect *rect = &vou_dev->rect; |
448 | struct v4l2_pix_format *pix = &vou_dev->pix; | 449 | struct v4l2_pix_format *pix = &vou_dev->pix; |
@@ -450,10 +451,10 @@ static void sh_vou_configure_geometry(struct sh_vou_device *vou_dev, | |||
450 | 451 | ||
451 | if (vou_dev->std & V4L2_STD_525_60) { | 452 | if (vou_dev->std & V4L2_STD_525_60) { |
452 | width_max = 858; | 453 | width_max = 858; |
453 | height_max = 262; | 454 | /* height_max = 262; */ |
454 | } else { | 455 | } else { |
455 | width_max = 864; | 456 | width_max = 864; |
456 | height_max = 312; | 457 | /* height_max = 312; */ |
457 | } | 458 | } |
458 | 459 | ||
459 | frame_in_height = pix->height / 2; | 460 | frame_in_height = pix->height / 2; |
@@ -1052,7 +1053,6 @@ static irqreturn_t sh_vou_isr(int irq, void *dev_id) | |||
1052 | static unsigned long j; | 1053 | static unsigned long j; |
1053 | struct videobuf_buffer *vb; | 1054 | struct videobuf_buffer *vb; |
1054 | static int cnt; | 1055 | static int cnt; |
1055 | static int side; | ||
1056 | u32 irq_status = sh_vou_reg_a_read(vou_dev, VOUIR), masked; | 1056 | u32 irq_status = sh_vou_reg_a_read(vou_dev, VOUIR), masked; |
1057 | u32 vou_status = sh_vou_reg_a_read(vou_dev, VOUSTR); | 1057 | u32 vou_status = sh_vou_reg_a_read(vou_dev, VOUSTR); |
1058 | 1058 | ||
@@ -1080,7 +1080,7 @@ static irqreturn_t sh_vou_isr(int irq, void *dev_id) | |||
1080 | irq_status, masked, vou_status, cnt); | 1080 | irq_status, masked, vou_status, cnt); |
1081 | 1081 | ||
1082 | cnt++; | 1082 | cnt++; |
1083 | side = vou_status & 0x10000; | 1083 | /* side = vou_status & 0x10000; */ |
1084 | 1084 | ||
1085 | /* Clear only set interrupts */ | 1085 | /* Clear only set interrupts */ |
1086 | sh_vou_reg_a_write(vou_dev, VOUIR, masked); | 1086 | sh_vou_reg_a_write(vou_dev, VOUIR, masked); |