mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
drm: cvbs connectors should only register corresponding vout_server [1/1]
PD#SWPL-182284 Problem: cvbs connectors should only register corresponding vout_server Solution: cvbs connectors register vout_server by connector type env Verify: sc2 Test: DRM-OSD-26 Change-Id: I9e5a0f9f537fbff527ec15b8cc0dea2abfbd753b Signed-off-by: congyang.huang <congyang.huang@amlogic.com>
This commit is contained in:
committed by
gerrit autosubmit
parent
9108635ff8
commit
5c38fa6fce
@@ -807,19 +807,47 @@ static struct vout_server_s cvbs_vout2_server = {
|
||||
|
||||
static void cvbs_init_vout(void)
|
||||
{
|
||||
char *connector0_type;
|
||||
#ifdef CONFIG_AMLOGIC_VOUT2_SERVE
|
||||
char *connector1_type;
|
||||
#endif
|
||||
bool is_register = false;
|
||||
|
||||
if (!cvbs_drv->vinfo)
|
||||
cvbs_drv->vinfo = &cvbs_info[MODE_480CVBS];
|
||||
|
||||
if (vout_register_server(&cvbs_vout_server))
|
||||
cvbs_log_err("register cvbs module server fail\n");
|
||||
else
|
||||
cvbs_log_info("register cvbs module server ok\n");
|
||||
connector0_type = get_uboot_connector0_type();
|
||||
if (strncmp("TV", connector0_type, 2) == 0) {
|
||||
if (vout_register_server(&cvbs_vout_server))
|
||||
cvbs_log_err("register cvbs module server by env fail\n");
|
||||
else
|
||||
cvbs_log_info("register cvbs module server by env ok\n");
|
||||
is_register = true;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_AMLOGIC_VOUT2_SERVE
|
||||
if (vout2_register_server(&cvbs_vout2_server))
|
||||
cvbs_log_err("register cvbs module vout2 server fail\n");
|
||||
else
|
||||
cvbs_log_info("register cvbs module vout2 server ok\n");
|
||||
connector1_type = get_uboot_connector1_type();
|
||||
if (strncmp("TV", connector1_type, 2) == 0) {
|
||||
if (vout2_register_server(&cvbs_vout2_server))
|
||||
cvbs_log_err("register cvbs module vout2 server by env fail\n");
|
||||
else
|
||||
cvbs_log_info("register cvbs module vout2 server by env ok\n");
|
||||
is_register = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!is_register) {
|
||||
if (vout_register_server(&cvbs_vout_server))
|
||||
cvbs_log_err("register cvbs module server fail\n");
|
||||
else
|
||||
cvbs_log_info("register cvbs module server ok\n");
|
||||
#ifdef CONFIG_AMLOGIC_VOUT2_SERVE
|
||||
if (vout2_register_server(&cvbs_vout2_server))
|
||||
cvbs_log_err("register cvbs module vout2 server fail\n");
|
||||
else
|
||||
cvbs_log_info("register cvbs module vout2 server ok\n");
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
static char *cvbs_out_bist_str[] = {
|
||||
|
||||
Reference in New Issue
Block a user