lkml.org 
[lkml]   [2021]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH v5 05/14] media: mtk-vcodec: venc: support START and STOP commands
On Fri, May 28, 2021 at 4:44 PM Dafna Hirschfeld
<dafna.hirschfeld@collabora.com> wrote:
> >> +static int vidioc_encoder_cmd(struct file *file, void *priv,
> >> + struct v4l2_encoder_cmd *cmd)
> >> +{
> >> + struct mtk_vcodec_ctx *ctx = fh_to_ctx(priv);
> >> + struct vb2_queue *src_vq, *dst_vq;
> >> + int ret;
>
> I see that the driver return -EIO on the ioctls when in state MTK_STATE_ABORT
> so you should probably test the state here as well.

Done, thanks for catching this!

\
 
 \ /
  Last update: 2021-07-05 07:05    [W:0.085 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site