PD#SWPL-1689
Problem:
The thread still exists when the process exits
Solution:
Check if the thread exits when the process exits
Verify:
local
Change-Id: I6d805da6bfa0df85b6d39d065c95eed49b3cb7da
Signed-off-by: Renjiang Han <renjiang.han@amlogic.com>
{
struct ionvideo_dev *dev = video_drvdata(file);
+ struct ionvideo_dmaqueue *dma_q = &dev->vidq;
+
+ if (dma_q->kthread)
+ vidioc_streamoff(file, NULL, 0);
+
IONVID_DBG("vidioc_close!!!!\n");
ppmgr2_release(&(dev->ppmgr2_dev));
//dprintk(dev, 2, "vidioc_close\n");