]> git.baikalelectronics.ru Git - kernel.git/commit
media: staging: rkisp1: cap: change the logic for writing to uv swap register
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Sat, 11 Apr 2020 16:05:59 +0000 (18:05 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 21 Apr 2020 15:24:34 +0000 (17:24 +0200)
commit75c8524dd2cfaed577e99f8cd302cb9f377ebddd
tree7815262091839d216420d9aae2930f801a0fcf4a
parenta7cc146a8e3e8ce8191c1ef4125ad1995d614a19
media: staging: rkisp1: cap: change the logic for writing to uv swap register

The register RKISP1_CIF_MI_XTD_FORMAT_CTRL is currently written
with "on" only if the u,v streams need to be swapped. This patch
also write to it with "off" if they don't need to be swapped.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
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/staging/media/rkisp1/rkisp1-capture.c