提交 a1886e9c 编写于 作者: D Dave Stevenson 提交者: Zheng Zengkai

media: bcm2835-unicam: Do not stop streaming in unicam_release

raspberrypi inclusion
category: feature
bugzilla: 50432

--------------------------------

unicam_release calls _vb2_fop_release, which will call stop_streaming
if that particular node was streaming. Calling it unconditionally (as
the code was) means that if a second handle was opened eg to alter
a setting, on closing that connection it also stopped Unicam.
Signed-off-by: NDave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: NFang Yafen <yafen@iscas.ac.cn>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 f00f38d0
......@@ -2204,9 +2204,6 @@ static int unicam_release(struct file *file)
if (fh_singular)
v4l2_subdev_call(sd, core, s_power, 0);
if (node->streaming)
unicam_stop_streaming(&node->buffer_queue);
node->open--;
mutex_unlock(&node->lock);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册