dv: set avi info limited range when dv output hdr mode [1/1]

PD#SWPL-1127

Problem:
when dv output hdr mode, the quantization range is default value
instead of limited range

Solution:
set quantization range to limited range in avi info

Verify:
t962e (txlx)

Change-Id: Ib4fbeb1c7efcedd7194143772ee5c663284a1c77
Signed-off-by: Yi Zhou <yi.zhou@amlogic.com>
This commit is contained in:
Yi Zhou
2018-11-06 19:43:35 +08:00
committed by Dongjin Kim
parent c56c864d2c
commit 3ca49d987b
2 changed files with 4 additions and 2 deletions

View File

@@ -1556,8 +1556,7 @@ static int dolby_core1_set(
/* vd2 to core1 */
0, 17, 1);
} else {
if (get_cpu_type() ==
MESON_CPU_MAJOR_ID_G12A)
if (is_meson_g12())
VSYNC_WR_MPEG_REG_BITS(
DOLBY_PATH_CTRL,
/* vd2 to core1 */

View File

@@ -1349,6 +1349,9 @@ static void hdmitx_set_drm_pkt(struct master_display_info_s *data)
hdev->hdmi_current_hdr_mode = 3;
}
hdev->HWOp.CntlConfig(hdev, CONF_AVI_Q01,
RGB_RANGE_LIM);
switch (hdev->hdmi_current_hdr_mode) {
case 1:
/*standard HDR*/