CHROMIUM: media: rockchip/isp1: Reverse the order of MIs

The current order (SP=0, MP=1) is the opposite of what is there in
hardware registers (MP=0, SP=1), which unnecessarily complicates the
code that deals with hardware programming. Fix this by reversing the
order of streams in the driver.

BUG=b:78779539
TEST=Make sure camera works on scarlet.

Change-Id: I43671748073d9dc4cb906e5f6f992f870920ce91
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1065403
Tested-by: yichong zhong <zyc@rock-chips.com>
Reviewed-by: Ricky Liang <jcliang@chromium.org>
Reviewed-by: yichong zhong <zyc@rock-chips.com>
Reviewed-by: Alexandre Courbot <acourbot@chromium.org>
This commit is contained in:
Tomasz Figa
2018-05-21 18:29:07 +09:00
committed by Tao Huang
parent 697ee6a0fb
commit ffaa481b28

View File

@@ -46,8 +46,8 @@
#define RKISP1_DEFAULT_HEIGHT 600
#define RKISP1_MAX_STREAM 2
#define RKISP1_STREAM_SP 0
#define RKISP1_STREAM_MP 1
#define RKISP1_STREAM_MP 0
#define RKISP1_STREAM_SP 1
#define RKISP1_PLANE_Y 0
#define RKISP1_PLANE_CB 1