amlogic: tvin: Fix enum conversion warnings
authorStricted <info@stricted.net>
Sat, 19 Jun 2021 23:06:58 +0000 (23:06 +0000)
committerNolen Johnson <johnsonnolen@gmail.com>
Sat, 3 Jul 2021 01:04:37 +0000 (21:04 -0400)
Change-Id: Ib93abbeb272370b9e520a6eabdae8d9f1ca061cc

drivers/amlogic/media/vin/tvin/hdmirx/hdmi_rx_drv.c
drivers/amlogic/media/vin/tvin/viu/viuin.c

index 25928a380f9d533034fe4eee4121e33c1dcd40f2..c96c672cae2f485d9545295296cbde014acfa242 100644 (file)
@@ -845,7 +845,7 @@ void hdmirx_get_latency_info(struct tvin_sig_property_s *prop)
 {
        prop->latency.allm_mode = rx.vs_info_details.allm_mode;
        prop->latency.it_content = rx.cur.it_content;
-       prop->latency.cn_type = rx.cur.cn_type;
+       prop->latency.cn_type = (enum tvin_cn_type_e)rx.cur.cn_type;
 }
 
 /*
index bb354b0af34e935de950b6519a67d68c938e0256..f84ae7b3704b434f3f7934f8440d3ff3b9b694ee 100644 (file)
@@ -420,7 +420,7 @@ static void viuin_sig_property(struct tvin_frontend_s *fe,
        case TVIN_PORT_VIU1_WB0_VPP:
        case TVIN_PORT_VIU1_WB1_VPP:
                vinfo = get_current_vinfo();
-               prop->color_format = vinfo->viu_color_fmt;
+               prop->color_format = (enum tvin_color_fmt_e)vinfo->viu_color_fmt;
                break;
 
        /* ENCL/ENCI/ENCP is only for viu2 loopback currently
@@ -438,14 +438,14 @@ static void viuin_sig_property(struct tvin_frontend_s *fe,
                else
                        pr_err("error: TVIN_PORT_VIU2_ENCL line begin = end\n");
 
-               prop->color_format = vinfo->viu_color_fmt;
+               prop->color_format = (enum tvin_color_fmt_e)vinfo->viu_color_fmt;
                break;
        case TVIN_PORT_VIU2_ENCI:
                vinfo = get_current_vinfo2();
 
                /* always negative */
                prop->polarity_vs = 1; /* negative */
-               prop->color_format = vinfo->viu_color_fmt;
+               prop->color_format = (enum tvin_color_fmt_e)vinfo->viu_color_fmt;
                break;
        case TVIN_PORT_VIU2_ENCP:
                vinfo = get_current_vinfo2();
@@ -459,7 +459,7 @@ static void viuin_sig_property(struct tvin_frontend_s *fe,
                else
                        pr_err("error: TVIN_PORT_VIU2_ENCP line begin = end\n");
 
-               prop->color_format = vinfo->viu_color_fmt;
+               prop->color_format = (enum tvin_color_fmt_e)vinfo->viu_color_fmt;
                break;
        default:
                prop->color_format = devp->parm.cfmt;