projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2586bba
)
M865SW-742: media: isi: add status checking when open video device
author
Guoniu.zhou
<guoniu.zhou@nxp.com>
Tue, 11 May 2021 05:48:18 +0000
(13:48 +0800)
committer
Guoniu.zhou
<guoniu.zhou@nxp.com>
Tue, 11 May 2021 09:45:40 +0000
(17:45 +0800)
Add ISI stream status checking when user try to open it.
Signed-off-by: Guoniu.zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
drivers/staging/media/imx/imx8-isi-cap.c
patch
|
blob
|
history
diff --git
a/drivers/staging/media/imx/imx8-isi-cap.c
b/drivers/staging/media/imx/imx8-isi-cap.c
index
e7b42a4
..
ae736a8
100644
(file)
--- a/
drivers/staging/media/imx/imx8-isi-cap.c
+++ b/
drivers/staging/media/imx/imx8-isi-cap.c
@@
-751,7
+751,7
@@
static int mxc_isi_capture_open(struct file *file)
}
mutex_unlock(&isi_cap->lock);
- if (mxc_isi->m2m_enabled) {
+ if (mxc_isi->m2m_enabled
|| isi_cap->is_streaming[isi_cap->id]
) {
dev_err(dev, "ISI channel[%d] is busy\n", isi_cap->id);
return ret;
}