From: Hans Verkuil Date: Fri, 8 Feb 2013 14:48:41 +0000 (-0300) Subject: [media] cx231xx: don't reset width/height on first open X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=720b3dfad42af96e3c937df8e167aac6c2901295;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git [media] cx231xx: don't reset width/height on first open The last set width/height must be preserved as per the spec. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/usb/cx231xx/cx231xx-video.c b/drivers/media/usb/cx231xx/cx231xx-video.c index bdaa5e01bb47..41c5c996ed2c 100644 --- a/drivers/media/usb/cx231xx/cx231xx-video.c +++ b/drivers/media/usb/cx231xx/cx231xx-video.c @@ -1871,9 +1871,6 @@ static int cx231xx_v4l2_open(struct file *filp) v4l2_fh_init(&fh->fh, vdev); if (fh->type == V4L2_BUF_TYPE_VIDEO_CAPTURE && dev->users == 0) { - dev->width = norm_maxw(dev); - dev->height = norm_maxh(dev); - /* Power up in Analog TV mode */ if (dev->board.external_av) cx231xx_set_power_mode(dev,