amvecm: minor fix for pattern detection function [1/1]
authorXihai Zhu <xihai.zhu@amlogic.com>
Tue, 10 Sep 2019 01:55:27 +0000 (21:55 -0400)
committerXihai Zhu <xihai.zhu@amlogic.com>
Tue, 10 Sep 2019 03:04:37 +0000 (23:04 -0400)
PD#SWPL-13075

Problem:
use the correct config option

Solution:
fix the wrong config option

Verify:
tl1

Change-Id: I87d3ba28c32fa77e12143522a4a342fdfe144af5
Signed-off-by: Xihai Zhu <xihai.zhu@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/pattern_detection.c

index ed0fb30..0ff5715 100644 (file)
@@ -29,7 +29,7 @@
 #include "arch/vpp_regs.h"
 #include "amve.h"
 #include "pattern_detection.h"
-#ifdef CONFIG_TVIN_AFE
+#ifdef CONFIG_AMLOGIC_MEDIA_TVIN_AFE
 #include "pattern_detection_bar_settings.h"
 #include "pattern_detection_face_settings.h"
 #include "pattern_detection_corn_settings.h"
@@ -181,7 +181,7 @@ static struct pattern pattern_list[] = {
        },
 };
 
-#ifdef CONFIG_TVIN_AFE
+#ifdef CONFIG_AMLOGIC_MEDIA_TVIN_AFE
 static void tvafe_get_default_regmap(struct am_regs_s *p)
 {
        unsigned short i;
@@ -1001,7 +1001,7 @@ int pattern_detect_add_vpp_setting_table(
 int init_pattern_detect(void)
 {
        /* install callback for color bar */
-#ifdef CONFIG_TVIN_AFE
+#ifdef CONFIG_AMLOGIC_MEDIA_TVIN_AFE
        pattern_detect_add_checker(
                                                PATTERN_75COLORBAR,
                                                colorbar_hist_checker);