Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f47c9045 authored by Benoit Parrot's avatar Benoit Parrot Committed by Mauro Carvalho Chehab
Browse files

[media] media: am437x-vpfe: Requested frame size and fmt overwritten by current sensor setting



Upon a S_FMT the input/requested frame size and pixel format is
overwritten by the current sub-device settings.
Fix this so application can actually set the frame size and format.

Fixes: 417d2e50 ("[media] media: platform: add VPFE capture driver support for AM437X")

Cc: <stable@vger.kernel.org> # v4.0+
Signed-off-by: default avatarBenoit Parrot <bparrot@ti.com>
Acked-by: default avatarLad, Prabhakar <prabhakar.csengg@gmail.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 2f8e75d2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1565,7 +1565,7 @@ static int vpfe_s_fmt(struct file *file, void *priv,
		return -EBUSY;
		return -EBUSY;
	}
	}


	ret = vpfe_try_fmt(file, priv, fmt);
	ret = vpfe_try_fmt(file, priv, &format);
	if (ret)
	if (ret)
		return ret;
		return ret;