From 01681d64356caa951bb9657635d753a4d133c560 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 7 Sep 2007 00:12:10 +0100 Subject: tm6000: Fix buffering size From: Mauro Carvalho Chehab At the first time an application were called, resolutions were wrong. Signed-off-by: Mauro Carvalho Chehab --- linux/drivers/staging/tm6000/tm6000-video.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'linux/drivers') diff --git a/linux/drivers/staging/tm6000/tm6000-video.c b/linux/drivers/staging/tm6000/tm6000-video.c index e304120f8..e24077fb5 100644 --- a/linux/drivers/staging/tm6000/tm6000-video.c +++ b/linux/drivers/staging/tm6000/tm6000-video.c @@ -1174,6 +1174,12 @@ static int vidioc_s_std (struct file *file, void *priv, v4l2_std_id *norm) struct tm6000_core *dev = fh->dev; rc=tm6000_set_standard (dev, norm); + +#if 1 + fh->width = dev->width; + fh->height = dev->height; +#endif + if (rc<0) return rc; -- cgit v1.2.3