Commit 59685fdf authored by Vikash Garodia's avatar Vikash Garodia Committed by Mauro Carvalho Chehab

media: venus: vdec: ensure venus is powered on during stream off

Video decoder driver auto-suspends the hardware if there is no
exchange of command or response for certain amount of time.
In auto suspended state, it becomes mandatory to power on the
hardware before requesting it to process a command. The fix
ensures the hardware is powered on during stop streaming.
Signed-off-by: default avatarVikash Garodia <quic_vgarodia@quicinc.com>
Signed-off-by: default avatarStanimir Varbanov <stanimir.varbanov@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 73664f10
...@@ -1200,6 +1200,8 @@ static void vdec_stop_streaming(struct vb2_queue *q) ...@@ -1200,6 +1200,8 @@ static void vdec_stop_streaming(struct vb2_queue *q)
struct venus_inst *inst = vb2_get_drv_priv(q); struct venus_inst *inst = vb2_get_drv_priv(q);
int ret = -EINVAL; int ret = -EINVAL;
vdec_pm_get_put(inst);
mutex_lock(&inst->lock); mutex_lock(&inst->lock);
if (q->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE) if (q->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment