public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tm6000: Prevent Kernel Oops changing channel when stream is still on.
@ 2010-05-01  8:51 Bee Hock Goh
  2010-05-02 14:42 ` Mauro Carvalho Chehab
  2010-05-03  0:08 ` Mauro Carvalho Chehab
  0 siblings, 2 replies; 4+ messages in thread
From: Bee Hock Goh @ 2010-05-01  8:51 UTC (permalink / raw)
  To: LMML

do a streamoff before setting standard to prevent kernel oops by
irq_callback if changing of channel is done while streaming is still
on-going.


Signed-off-by: Bee Hock Goh <beehock@gmail.com>

diff --git a/drivers/staging/tm6000/tm6000-video.c
b/drivers/staging/tm6000/tm6000-video.c
index c53de47..32f625d 100644
--- a/drivers/staging/tm6000/tm6000-video.c
+++ b/drivers/staging/tm6000/tm6000-video.c

@@ -1081,8 +1086,8 @@ static int vidioc_s_std (struct file *file, void
*priv, v4l2_std_id *norm)
 	struct tm6000_fh   *fh=priv;
 	struct tm6000_core *dev = fh->dev;

+	vidioc_streamoff(file, priv, V4L2_BUF_TYPE_VIDEO_CAPTURE);
 	rc=tm6000_set_standard (dev, norm);
-
 	fh->width  = dev->width;
 	fh->height = dev->height;

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-05-03  0:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-01  8:51 [PATCH] tm6000: Prevent Kernel Oops changing channel when stream is still on Bee Hock Goh
2010-05-02 14:42 ` Mauro Carvalho Chehab
2010-05-02 17:26   ` Mauro Carvalho Chehab
2010-05-03  0:08 ` Mauro Carvalho Chehab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox