media: rcar-vin: Use correct pixel format when aligning format
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Wed, 4 Dec 2019 17:57:59 +0000 (18:57 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 23 Jan 2020 12:09:08 +0000 (13:09 +0100)
commit1fd4d9cb739bd47b74840f8933616cc75341db05
treebc23f06153f354177e5cfa5bdaba108fd956c509
parent2a0a0bc7020ef7e66c9569d8229d79fa72e3d659
media: rcar-vin: Use correct pixel format when aligning format

When aligning the format the pixel format that is being processed shall
be used to figure out alignment constraints, not the currently active
pixel format. The alignment might be part of a try operation and shall
not be effected by the active format. Fix this by looking at the correct
pixel format.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/rcar-vin/rcar-v4l2.c