amvecm: fix cm2 adj interface error
authorBencheng Jing <bencheng.jing@amlogic.com>
Tue, 18 Sep 2018 08:59:35 +0000 (16:59 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 19 Sep 2018 14:56:18 +0000 (07:56 -0700)
PD#173878: fix cm2_sat/cm2_luma/cm2_hue_by_hs interface error

Change-Id: Ia2a6bb19396cb1c74094330ba7428a7fc899bd56
Signed-off-by: Bencheng Jing <bencheng.jing@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/amvecm.c

index 108cd69..7d9a693 100644 (file)
@@ -4169,7 +4169,7 @@ static ssize_t amvecm_cm2_luma_store(struct class *cla,
                        goto kfree_buf;
 
                cm2_luma_array[color_mode][1] = val;
-               cm2_hue(color_mode, cm2_luma_array[color_mode][0],
+               cm2_luma(color_mode, cm2_luma_array[color_mode][0],
                    cm2_luma_array[color_mode][1]);
                pr_info("cm2_luma ok\n");
        }
@@ -4219,7 +4219,7 @@ static ssize_t amvecm_cm2_sat_store(struct class *cla,
                        goto kfree_buf;
 
                cm2_sat_array[color_mode][1] = val;
-               cm2_hue(color_mode, cm2_sat_array[color_mode][0],
+               cm2_sat(color_mode, cm2_sat_array[color_mode][0],
                    cm2_sat_array[color_mode][1]);
                pr_info("cm2_sat ok\n");
        }
@@ -4271,7 +4271,7 @@ static ssize_t amvecm_cm2_hue_by_hs_store(struct class *cla,
                        goto kfree_buf;
 
                cm2_hue_by_hs_array[color_mode][1] = val;
-               cm2_hue(color_mode, cm2_hue_by_hs_array[color_mode][0],
+               cm2_hue_by_hs(color_mode, cm2_hue_by_hs_array[color_mode][0],
                    cm2_hue_by_hs_array[color_mode][1]);
                pr_info("cm2_hue_by_hs ok\n");
        }