Commit 25918dbb authored by Benoit Parrot's avatar Benoit Parrot Committed by Greg Kroah-Hartman

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

commit f47c9045 upstream.

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")
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>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 587a9f47
......@@ -1565,7 +1565,7 @@ static int vpfe_s_fmt(struct file *file, void *priv,
return -EBUSY;
}
ret = vpfe_try_fmt(file, priv, fmt);
ret = vpfe_try_fmt(file, priv, &format);
if (ret)
return ret;
......
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