mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-07 00:59:06 +00:00
media: camss: set VFE bpl_alignment to 16 for sdm845 and sm8250
[ Upstream commit d5b7eb477c
]
From the experiments with camera sensors using SGRBG10_1X10/3280x2464 and
SRGGB10_1X10/3280x2464 formats, it becomes clear that on sdm845 and sm8250
VFE outputs the lines padded to a length multiple of 16 bytes. As in the
current driver the value of the bpl_alignment is set to 8 bytes, the frames
captured in formats with the bytes-per-line value being not a multiple of
16 get corrupted.
Set the bpl_alignment of the camss video output device to 16 for sdm845 and
sm8250 to fix that.
Signed-off-by: Andrey Konovalov <andrey.konovalov@linaro.org>
Tested-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Acked-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
e01ea1c419
commit
0d353e6cd3
1 changed files with 5 additions and 1 deletions
|
@ -1541,7 +1541,11 @@ int msm_vfe_register_entities(struct vfe_device *vfe,
|
|||
}
|
||||
|
||||
video_out->ops = &vfe->video_ops;
|
||||
video_out->bpl_alignment = 8;
|
||||
if (vfe->camss->version == CAMSS_845 ||
|
||||
vfe->camss->version == CAMSS_8250)
|
||||
video_out->bpl_alignment = 16;
|
||||
else
|
||||
video_out->bpl_alignment = 8;
|
||||
video_out->line_based = 0;
|
||||
if (i == VFE_LINE_PIX) {
|
||||
video_out->bpl_alignment = 16;
|
||||
|
|
Loading…
Reference in a new issue