diff options
author | Robby Cai <r63905@freescale.com> | 2014-12-24 20:44:31 +0800 |
---|---|---|
committer | Robby Cai <r63905@freescale.com> | 2014-12-24 21:50:09 +0800 |
commit | 6cb794b964ea4a8f00116c800a7075c3b67fff6b (patch) | |
tree | c346c2584b99c4303ea1e965d20be5c6fba7e7e2 /firmware | |
parent | f1ae217b23ac348190dd41bbd488184d2ff8012b (diff) |
MLK-10057 PxP V4L2 output: force to call pxp_streamoff when device closes
By previous implementation, there's the possibility that last picture remains
on screen when the program exits. This can be reproduced by not calling
STREAMOFF ioctl in v4l2 output application or just trying to kill the v4l2
output program. The driver has faults to handle this case, since it depends on
'pxp->s0_vbq.streaming' variable be true in close() function to call
pxp_streamoff() while the variable is set to 0 after the application calls
munmap(). The driver should call pxp_streamoff() even if the application
does not call STREAMOFF ioctl.
This patch uses the local 'streaming' variable to track the streaming
status to fix this problem.
Signed-off-by: Robby Cai <r63905@freescale.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions