[PATCH 59/133] [Jaunty SRU] ARM.imx51 Freescale:ENGR00108541 fix system crash issue due to trying to display 1 frame on the LCD
Brad Figg
brad.figg at canonical.com
Thu Jul 9 16:48:49 UTC 2009
From: Sammy He <r62914 at freescale.com>
System is crash in vpu decoder unit test if decoded 1 frame and display
on the LCD once after boot.
Signed-off-by: Sammy He <r62914 at freescale.com>
Signed-off-by: Brad Figg <brad.figg at canonical.com>
---
drivers/media/video/mxc/output/mxc_v4l2_output.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/media/video/mxc/output/mxc_v4l2_output.c b/drivers/media/video/mxc/output/mxc_v4l2_output.c
index 4f77787..046b1e7 100644
--- a/drivers/media/video/mxc/output/mxc_v4l2_output.c
+++ b/drivers/media/video/mxc/output/mxc_v4l2_output.c
@@ -306,7 +306,8 @@ static void timer_work_func(struct work_struct *work)
if (index != -1) {
/* if timestamp is 0, then default to 30fps */
if ((vout->v4l2_bufs[index].timestamp.tv_sec == 0)
- && (vout->v4l2_bufs[index].timestamp.tv_usec == 0))
+ && (vout->v4l2_bufs[index].timestamp.tv_usec == 0)
+ && vout->start_jiffies)
timeout =
vout->start_jiffies + vout->frame_count * HZ / 30;
else
@@ -1180,7 +1181,6 @@ static int mxc_v4l2out_close(struct inode *inode, struct file *file)
/* capture off */
wake_up_interruptible(&vout->v4l_bufq);
- schedule_work(&vout->timer_work);
flush_scheduled_work();
}
--
1.6.0.4
More information about the kernel-team
mailing list