[9810] fimc-is2: Set default value into the input DMA order on error case
authorSanghoon Lee <shoon114.lee@samsung.com>
Mon, 26 Mar 2018 06:14:22 +0000 (15:14 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:31 +0000 (20:22 +0300)
Change-Id: Ie3420d6df394cbdb3f81dad19b1484927b48b15d
Signed-off-by: Sanghoon Lee <shoon114.lee@samsung.com>
drivers/media/platform/exynos/fimc-is2/ischain/fimc-is-v6_0_0/fimc-is-param.h

index d021cbf9ee7e6f3b9331f6653e08cc37279917b1..383cc7462b1f87cd2b7af3c42c2159f9c3a75507 100644 (file)
@@ -1479,9 +1479,6 @@ static inline enum dma_input_order change_to_input_order(enum dma_output_order o
        enum dma_input_order input_order;
 
        switch (output_order) {
-       case DMA_OUTPUT_ORDER_NO:
-               input_order = DMA_INPUT_ORDER_NO;
-               break;
        case DMA_OUTPUT_ORDER_CrCb:
                input_order = DMA_INPUT_ORDER_CrCb;
                break;
@@ -1506,8 +1503,9 @@ static inline enum dma_input_order change_to_input_order(enum dma_output_order o
        case DMA_OUTPUT_ORDER_YCbCr:
                input_order = DMA_INPUT_ORDER_YCbCr;
                break;
+       case DMA_OUTPUT_ORDER_NO:
        default:
-               input_order = output_order;
+               input_order = DMA_INPUT_ORDER_NO;
                break;
        }