mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
media: am437x-vpfe: Setting STD to current value is not an error
[ Upstream commit 13aa21cfe92ce9ebb51824029d89f19c33f81419 ] VIDIOC_S_STD should not return an error if the value is identical to the current one. This error was highlighted by the v4l2-compliance test. Signed-off-by: Benoit Parrot <[email protected]> Acked-by: Lad Prabhakar <[email protected]> Signed-off-by: Hans Verkuil <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
d7bb7d20a8
commit
95206abb46
1 changed files with 4 additions and 0 deletions
|
|
@ -1830,6 +1830,10 @@ static int vpfe_s_std(struct file *file, void *priv, v4l2_std_id std_id)
|
|||
if (!(sdinfo->inputs[0].capabilities & V4L2_IN_CAP_STD))
|
||||
return -ENODATA;
|
||||
|
||||
/* if trying to set the same std then nothing to do */
|
||||
if (vpfe_standards[vpfe->std_index].std_id == std_id)
|
||||
return 0;
|
||||
|
||||
/* If streaming is started, return error */
|
||||
if (vb2_is_busy(&vpfe->buffer_queue)) {
|
||||
vpfe_err(vpfe, "%s device busy\n", __func__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue