mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
hdr: Enable default output to HDR for HDR TV [1/1]
PD#SWPL-3096 Problem: G12A/G12B need enable sdr2hdr Solution: enable sdr2hdr function Verify: verify on G12A Change-Id: I1e771a13d33fe675cfc36d8308afc37077545cd4 Signed-off-by: MingLiang Dong <mingliang.dong@amlogic.com>
This commit is contained in:
committed by
Dongjin Kim
parent
a8e57a75f7
commit
6dca69828b
@@ -5948,10 +5948,8 @@ static void hdr_support_process(struct vinfo_s *vinfo)
|
||||
|
||||
if (sdr_mode == 2) { /* auto */
|
||||
if ((vinfo->hdr_info.hdr_support & 0x4) &&
|
||||
((get_cpu_type() == MESON_CPU_MAJOR_ID_GXL) ||
|
||||
(get_cpu_type() == MESON_CPU_MAJOR_ID_GXM) ||
|
||||
(get_cpu_type() == MESON_CPU_MAJOR_ID_GXLX) ||
|
||||
(get_cpu_type() == MESON_CPU_MAJOR_ID_G12A)))
|
||||
((cpu_after_eq(MESON_CPU_MAJOR_ID_GXL)) &&
|
||||
(vinfo->viu_color_fmt != COLOR_FMT_RGB444)))
|
||||
sdr_process_mode = 1; /*box sdr->hdr*/
|
||||
else if ((vinfo->viu_color_fmt == COLOR_FMT_RGB444) &&
|
||||
((get_cpu_type() == MESON_CPU_MAJOR_ID_GXTVBB) ||
|
||||
|
||||
@@ -5832,13 +5832,14 @@ static int aml_vecm_probe(struct platform_device *pdev)
|
||||
/* box sdr_mode:auto, tv sdr_mode:off */
|
||||
/* disable contrast and saturation adjustment for HDR on TV */
|
||||
/* disable SDR to HDR convert on TV */
|
||||
if (is_meson_gxl_cpu() || is_meson_gxm_cpu()) {
|
||||
sdr_mode = 0;
|
||||
if (is_meson_gxl_cpu() || is_meson_gxm_cpu())
|
||||
hdr_flag = (1 << 0) | (1 << 1) | (1 << 2) | (1 << 3);
|
||||
} else {
|
||||
sdr_mode = 0;
|
||||
else
|
||||
hdr_flag = (1 << 0) | (1 << 1) | (0 << 2) | (0 << 3);
|
||||
}
|
||||
|
||||
if (is_meson_g12a_cpu() || is_meson_g12b_cpu())
|
||||
sdr_mode = 2;
|
||||
|
||||
/*config vlock mode*/
|
||||
/*todo:txlx & g9tv support auto pll,*/
|
||||
/*but support not good,need vlsi support optimize*/
|
||||
|
||||
Reference in New Issue
Block a user