Re: [RFC PATCH 6/8] v4l2: use new V4L2_DV_BT_BLANKING/FRAME defines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2013/7/29 Hans Verkuil <hverkuil@xxxxxxxxx>:
> From: Hans Verkuil <hans.verkuil@xxxxxxxxx>
>
> Use the new defines to calculate the full blanking and frame sizes.
>
> Signed-off-by: Hans Verkuil <hans.verkuil@xxxxxxxxx>
> Cc: Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx>
> Cc: Scott Jiang <scott.jiang.linux@xxxxxxxxx>
> ---

>  drivers/media/platform/blackfin/bfin_capture.c | 9 ++-------


> diff --git a/drivers/media/platform/blackfin/bfin_capture.c b/drivers/media/platform/blackfin/bfin_capture.c
> index 7f838c6..4c11059 100644
> --- a/drivers/media/platform/blackfin/bfin_capture.c
> +++ b/drivers/media/platform/blackfin/bfin_capture.c
> @@ -388,13 +388,8 @@ static int bcap_start_streaming(struct vb2_queue *vq, unsigned int count)
>
>                 params.hdelay = bt->hsync + bt->hbackporch;
>                 params.vdelay = bt->vsync + bt->vbackporch;
> -               params.line = bt->hfrontporch + bt->hsync
> -                               + bt->hbackporch + bt->width;
> -               params.frame = bt->vfrontporch + bt->vsync
> -                               + bt->vbackporch + bt->height;
> -               if (bt->interlaced)
> -                       params.frame += bt->il_vfrontporch + bt->il_vsync
> -                                       + bt->il_vbackporch;
> +               params.line = V4L2_DV_BT_FRAME_WIDTH(bt);
> +               params.frame = V4L2_DV_BT_FRAME_HEIGHT(bt);
>         } else if (bcap_dev->cfg->inputs[bcap_dev->cur_input].capabilities
>                         & V4L2_IN_CAP_STD) {
>                 params.hdelay = 0;

Acked-by: Scott Jiang <scott.jiang.linux@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux