diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2021-10-07 00:26:21 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-10-08 13:40:26 +0200 |
commit | 553481e38045f349bb9aa596d03bebd020020c9c (patch) | |
tree | 6e1a5a47d258fcd9c151dd199e0c2895f7571a73 /drivers/staging/media/ipu3 | |
parent | 6c0f6c424fcac470cb6f444a53d549d227f46910 (diff) | |
download | linux-stable-553481e38045f349bb9aa596d03bebd020020c9c.tar.gz linux-stable-553481e38045f349bb9aa596d03bebd020020c9c.tar.bz2 linux-stable-553481e38045f349bb9aa596d03bebd020020c9c.zip |
media: ipu3-imgu: imgu_fmt: Handle properly try
For a try_fmt call, the node noes not need to be enabled.
Fixes v4l2-compliance
fail: v4l2-test-formats.cpp(717): Video Output Multiplanar is valid, but
no TRY_FMT was implemented
test VIDIOC_TRY_FMT: FAIL
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/staging/media/ipu3')
-rw-r--r-- | drivers/staging/media/ipu3/ipu3-v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/ipu3/ipu3-v4l2.c b/drivers/staging/media/ipu3/ipu3-v4l2.c index d9f7a854d68c..69ef820619ab 100644 --- a/drivers/staging/media/ipu3/ipu3-v4l2.c +++ b/drivers/staging/media/ipu3/ipu3-v4l2.c @@ -696,7 +696,7 @@ static int imgu_fmt(struct imgu_device *imgu, unsigned int pipe, int node, /* CSS expects some format on OUT queue */ if (i != IPU3_CSS_QUEUE_OUT && - !imgu_pipe->nodes[inode].enabled) { + !imgu_pipe->nodes[inode].enabled && !try) { fmts[i] = NULL; continue; } |