dv: remove g12b ver B from the status of SDR mode [1/1]
authorYi Zhou <yi.zhou@amlogic.com>
Mon, 25 Feb 2019 12:02:11 +0000 (20:02 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 5 Mar 2019 11:34:49 +0000 (03:34 -0800)
PD#SWPL-4582

Problem:
g12 verA has a hardware bug.Therefore,dv cores
must keep working even if under sdr mode

Solution:
g12B verB has fixed this bug, so remove this chip id

Verify:
verify by g12b revb

Change-Id: Ice1aa1364319fa12d5a896fdfd106450f1a04d3d
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c

index e1546dc..1f53c40 100644 (file)
@@ -3712,8 +3712,9 @@ static int dolby_vision_policy_process(
                                        *mode = DOLBY_VISION_OUTPUT_MODE_BYPASS;
                                        mode_change = 1;
                                }
-                       } else if (is_meson_g12a_cpu() || is_meson_g12b_cpu()) {
-                               /*g12 has a hardware bug. Therefore, dv cores
+                       } else if ((is_meson_g12b_cpu() && is_meson_rev_a()) ||
+                               is_meson_g12a_cpu()) {
+                               /*g12 verA has a hardware bug.Therefore,dv cores
                                 *must keep working even if under sdr mode
                                 */
                                if (dolby_vision_mode !=