amvecm: sdr2hdr function set by uplayer, driver default disable [1/1]
authorMingLiang Dong <mingliang.dong@amlogic.com>
Wed, 16 Jan 2019 06:36:29 +0000 (01:36 -0500)
committerNick Xie <nick@khadas.com>
Mon, 5 Aug 2019 07:27:31 +0000 (15:27 +0800)
PD#SWPL-4255

Problem:
UI disable SDR TO HDR, reboot BOX,
TV flicker white and then display ok when connect hdr tv

Solution:
dr2hdr function set by uplayer, kernel default disable

Verify:
verify on G12A

Change-Id: Iea5a1e0be9b5665bb7deb785b6b5faa702ef1664
Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
drivers/amlogic/media/enhancement/amvecm/amvecm.c

index fdb4f36..ce88c5f 100644 (file)
@@ -5976,9 +5976,6 @@ static int aml_vecm_probe(struct platform_device *pdev)
        else
                hdr_flag = (1 << 0) | (1 << 1) | (0 << 2) | (0 << 3);
 
-       if (is_meson_g12a_cpu() || is_meson_g12b_cpu())
-               sdr_mode = 2;
-
        vlock_status_init();
        hdr_init(&amvecm_dev.hdr_d);
        aml_vecm_dt_parse(pdev);