From ffaa481b2844bb82b900e3b41ae846199055ba84 Mon Sep 17 00:00:00 2001 From: Tomasz Figa Date: Mon, 21 May 2018 18:29:07 +0900 Subject: [PATCH] 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 Reviewed-on: https://chromium-review.googlesource.com/1065403 Tested-by: yichong zhong Reviewed-by: Ricky Liang Reviewed-by: yichong zhong Reviewed-by: Alexandre Courbot --- drivers/media/platform/rockchip/isp1/common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/rockchip/isp1/common.h b/drivers/media/platform/rockchip/isp1/common.h index 0d78446fda28..5f212090b9a1 100644 --- a/drivers/media/platform/rockchip/isp1/common.h +++ b/drivers/media/platform/rockchip/isp1/common.h @@ -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