Loading arch/arm64/configs/vendor/qcs405-perf_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -315,6 +315,7 @@ CONFIG_FB=y CONFIG_FB_MSM=y CONFIG_FB_MSM_MDSS=y CONFIG_FB_MSM_MDSS_WRITEBACK=y CONFIG_FB_MSM_MDSS_HDMI_PANEL=y CONFIG_FB_MSM_MDSS_SPI_PANEL=y CONFIG_FB_MSM_MDSS_DSI_CTRL_STATUS=y CONFIG_BACKLIGHT_LCD_SUPPORT=y Loading arch/arm64/configs/vendor/qcs405_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -330,6 +330,7 @@ CONFIG_FB=y CONFIG_FB_MSM=y CONFIG_FB_MSM_MDSS=y CONFIG_FB_MSM_MDSS_WRITEBACK=y CONFIG_FB_MSM_MDSS_HDMI_PANEL=y CONFIG_FB_MSM_MDSS_SPI_PANEL=y CONFIG_FB_MSM_MDSS_DSI_CTRL_STATUS=y CONFIG_FB_MSM_MDSS_XLOG_DEBUG=y Loading drivers/video/fbdev/msm/Makefile +2 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,8 @@ obj-$(CONFIG_FB_MSM_MDSS_EDP_PANEL) += mdss_edp_aux.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_tx.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_panel.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_hdcp.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdcp_1x.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdcp_2x.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_hdcp2p2.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_cec.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_audio.o Loading drivers/video/fbdev/msm/mdss_cec_core.c +43 −24 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ static struct cec_ctl *cec_get_ctl(struct device *dev) struct mdss_panel_info *pinfo; if (!dev) { pr_err("invalid input\n"); pr_err("invalid device\n"); goto error; } Loading Loading @@ -83,8 +83,13 @@ static int cec_msg_send(struct cec_ctl *ctl, struct cec_msg *msg) int ret = -EINVAL; struct cec_ops *ops; if (!ctl || !msg) { pr_err("invalid input\n"); if (!ctl) { pr_err("invalid cec ctl\n"); goto end; } if (!msg) { pr_err("invalid cec message\n"); goto end; } Loading @@ -101,8 +106,13 @@ static void cec_dump_msg(struct cec_ctl *ctl, struct cec_msg *msg) int i; unsigned long flags; if (!ctl || !msg) { pr_err("invalid input\n"); if (!ctl) { pr_err("invalid cec ctl\n"); return; } if (!msg) { pr_err("invalid cec message\n"); return; } Loading Loading @@ -136,7 +146,7 @@ static int cec_disable(struct cec_ctl *ctl) struct cec_ops *ops; if (!ctl) { pr_err("Invalid input\n"); pr_err("invalid cec ctl\n"); goto end; } Loading Loading @@ -165,7 +175,7 @@ static int cec_enable(struct cec_ctl *ctl) struct cec_ops *ops; if (!ctl) { pr_err("Invalid input\n"); pr_err("invalid cec ctl\n"); goto end; } Loading @@ -189,8 +199,13 @@ static int cec_send_abort_opcode(struct cec_ctl *ctl, int i = 0; struct cec_msg out_msg; if (!ctl || !in_msg) { pr_err("Invalid input\n"); if (!ctl) { pr_err("invalid cec ctl\n"); return -EINVAL; } if (!in_msg) { pr_err("invalid cec message\n"); return -EINVAL; } Loading @@ -209,10 +224,14 @@ static int cec_msg_parser(struct cec_ctl *ctl, struct cec_msg *in_msg) int rc = 0, i = 0; struct cec_msg out_msg; if (!ctl || !in_msg) { pr_err("Invalid input\n"); rc = -EINVAL; goto end; if (!ctl) { pr_err("invalid cec ctl\n"); return -EINVAL; } if (!in_msg) { pr_err("invalid cec message\n"); return -EINVAL; } pr_debug("in_msg->opcode = 0x%x\n", in_msg->opcode); Loading Loading @@ -345,7 +364,7 @@ static int cec_msg_recv(void *data, struct cec_msg *msg) int ret = 0; if (!ctl) { pr_err("invalid input\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -395,7 +414,7 @@ static ssize_t cec_rda_enable(struct device *dev, struct cec_ctl *ctl = cec_get_ctl(dev); if (!ctl) { pr_err("Invalid input\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -423,7 +442,7 @@ static ssize_t cec_wta_enable(struct device *dev, struct cec_ops *ops; if (!ctl) { pr_err("Invalid input\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -475,7 +494,7 @@ static ssize_t cec_rda_enable_compliance(struct device *dev, struct cec_ctl *ctl = cec_get_ctl(dev); if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); return -EINVAL; } Loading @@ -497,7 +516,7 @@ static ssize_t cec_wta_enable_compliance(struct device *dev, struct cec_ops *ops; if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -543,7 +562,7 @@ static ssize_t cec_rda_logical_addr(struct device *dev, struct cec_ctl *ctl = cec_get_ctl(dev); if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); return -EINVAL; } Loading @@ -564,7 +583,7 @@ static ssize_t cec_wta_logical_addr(struct device *dev, struct cec_ops *ops; if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading @@ -578,7 +597,7 @@ static ssize_t cec_wta_logical_addr(struct device *dev, } if (logical_addr < 0 || logical_addr > 15) { pr_err("Invalid logical address\n"); pr_err("invalid logical address\n"); ret = -EINVAL; goto end; } Loading @@ -604,7 +623,7 @@ static ssize_t cec_rda_msg(struct device *dev, ssize_t ret; if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -660,7 +679,7 @@ static ssize_t cec_wta_msg(struct device *dev, struct cec_ctl *ctl = cec_get_ctl(dev); if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -763,7 +782,7 @@ void *cec_abstract_init(struct cec_abstract_init_data *init_data) int ret = 0; if (!init_data) { pr_err("invalid input\n"); pr_err("invalid cec abstract init data\n"); ret = -EINVAL; goto end; } Loading drivers/video/fbdev/msm/mdss_dba_utils.c +4 −4 Original line number Diff line number Diff line Loading @@ -298,7 +298,7 @@ static bool mdss_dba_check_audio_support(struct mdss_dba_utils_data *udata) { bool dvi_mode = false; int audio_blk_size = 0; struct msm_hdmi_audio_edid_blk audio_blk; struct msm_ext_disp_audio_edid_blk audio_blk; if (!udata) { pr_debug("%s: Invalid input\n", __func__); Loading @@ -307,7 +307,7 @@ static bool mdss_dba_check_audio_support(struct mdss_dba_utils_data *udata) memset(&audio_blk, 0, sizeof(audio_blk)); /* check if sink is in DVI mode */ dvi_mode = !hdmi_edid_get_sink_mode(udata->edid_data); dvi_mode = hdmi_edid_is_dvi_mode(udata->edid_data); /* get the audio block size info from EDID */ hdmi_edid_get_audio_blk(udata->edid_data, &audio_blk); Loading @@ -328,7 +328,7 @@ static void mdss_dba_utils_dba_cb(void *data, enum msm_dba_callback_event event) bool operands_present = false; u32 no_of_operands, size, i; u32 operands_offset = MAX_CEC_FRAME_SIZE - MAX_OPERAND_SIZE; struct msm_hdmi_audio_edid_blk blk; struct msm_ext_disp_audio_edid_blk blk; if (!udata) { pr_err("Invalid data\n"); Loading Loading @@ -578,7 +578,7 @@ int mdss_dba_utils_video_on(void *data, struct mdss_panel_info *pinfo) video_cfg.h_pulse_width = pinfo->lcdc.h_pulse_width; video_cfg.v_pulse_width = pinfo->lcdc.v_pulse_width; video_cfg.pclk_khz = (unsigned long)pinfo->clk_rate / 1000; video_cfg.hdmi_mode = hdmi_edid_get_sink_mode(ud->edid_data); video_cfg.hdmi_mode = !hdmi_edid_is_dvi_mode(ud->edid_data); /* Calculate number of DSI lanes configured */ video_cfg.num_of_input_lanes = 0; Loading Loading
arch/arm64/configs/vendor/qcs405-perf_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -315,6 +315,7 @@ CONFIG_FB=y CONFIG_FB_MSM=y CONFIG_FB_MSM_MDSS=y CONFIG_FB_MSM_MDSS_WRITEBACK=y CONFIG_FB_MSM_MDSS_HDMI_PANEL=y CONFIG_FB_MSM_MDSS_SPI_PANEL=y CONFIG_FB_MSM_MDSS_DSI_CTRL_STATUS=y CONFIG_BACKLIGHT_LCD_SUPPORT=y Loading
arch/arm64/configs/vendor/qcs405_defconfig +1 −0 Original line number Diff line number Diff line Loading @@ -330,6 +330,7 @@ CONFIG_FB=y CONFIG_FB_MSM=y CONFIG_FB_MSM_MDSS=y CONFIG_FB_MSM_MDSS_WRITEBACK=y CONFIG_FB_MSM_MDSS_HDMI_PANEL=y CONFIG_FB_MSM_MDSS_SPI_PANEL=y CONFIG_FB_MSM_MDSS_DSI_CTRL_STATUS=y CONFIG_FB_MSM_MDSS_XLOG_DEBUG=y Loading
drivers/video/fbdev/msm/Makefile +2 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,8 @@ obj-$(CONFIG_FB_MSM_MDSS_EDP_PANEL) += mdss_edp_aux.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_tx.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_panel.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_hdcp.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdcp_1x.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdcp_2x.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_hdcp2p2.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_cec.o obj-$(CONFIG_FB_MSM_MDSS_HDMI_PANEL) += mdss_hdmi_audio.o Loading
drivers/video/fbdev/msm/mdss_cec_core.c +43 −24 Original line number Diff line number Diff line Loading @@ -50,7 +50,7 @@ static struct cec_ctl *cec_get_ctl(struct device *dev) struct mdss_panel_info *pinfo; if (!dev) { pr_err("invalid input\n"); pr_err("invalid device\n"); goto error; } Loading Loading @@ -83,8 +83,13 @@ static int cec_msg_send(struct cec_ctl *ctl, struct cec_msg *msg) int ret = -EINVAL; struct cec_ops *ops; if (!ctl || !msg) { pr_err("invalid input\n"); if (!ctl) { pr_err("invalid cec ctl\n"); goto end; } if (!msg) { pr_err("invalid cec message\n"); goto end; } Loading @@ -101,8 +106,13 @@ static void cec_dump_msg(struct cec_ctl *ctl, struct cec_msg *msg) int i; unsigned long flags; if (!ctl || !msg) { pr_err("invalid input\n"); if (!ctl) { pr_err("invalid cec ctl\n"); return; } if (!msg) { pr_err("invalid cec message\n"); return; } Loading Loading @@ -136,7 +146,7 @@ static int cec_disable(struct cec_ctl *ctl) struct cec_ops *ops; if (!ctl) { pr_err("Invalid input\n"); pr_err("invalid cec ctl\n"); goto end; } Loading Loading @@ -165,7 +175,7 @@ static int cec_enable(struct cec_ctl *ctl) struct cec_ops *ops; if (!ctl) { pr_err("Invalid input\n"); pr_err("invalid cec ctl\n"); goto end; } Loading @@ -189,8 +199,13 @@ static int cec_send_abort_opcode(struct cec_ctl *ctl, int i = 0; struct cec_msg out_msg; if (!ctl || !in_msg) { pr_err("Invalid input\n"); if (!ctl) { pr_err("invalid cec ctl\n"); return -EINVAL; } if (!in_msg) { pr_err("invalid cec message\n"); return -EINVAL; } Loading @@ -209,10 +224,14 @@ static int cec_msg_parser(struct cec_ctl *ctl, struct cec_msg *in_msg) int rc = 0, i = 0; struct cec_msg out_msg; if (!ctl || !in_msg) { pr_err("Invalid input\n"); rc = -EINVAL; goto end; if (!ctl) { pr_err("invalid cec ctl\n"); return -EINVAL; } if (!in_msg) { pr_err("invalid cec message\n"); return -EINVAL; } pr_debug("in_msg->opcode = 0x%x\n", in_msg->opcode); Loading Loading @@ -345,7 +364,7 @@ static int cec_msg_recv(void *data, struct cec_msg *msg) int ret = 0; if (!ctl) { pr_err("invalid input\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -395,7 +414,7 @@ static ssize_t cec_rda_enable(struct device *dev, struct cec_ctl *ctl = cec_get_ctl(dev); if (!ctl) { pr_err("Invalid input\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -423,7 +442,7 @@ static ssize_t cec_wta_enable(struct device *dev, struct cec_ops *ops; if (!ctl) { pr_err("Invalid input\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -475,7 +494,7 @@ static ssize_t cec_rda_enable_compliance(struct device *dev, struct cec_ctl *ctl = cec_get_ctl(dev); if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); return -EINVAL; } Loading @@ -497,7 +516,7 @@ static ssize_t cec_wta_enable_compliance(struct device *dev, struct cec_ops *ops; if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -543,7 +562,7 @@ static ssize_t cec_rda_logical_addr(struct device *dev, struct cec_ctl *ctl = cec_get_ctl(dev); if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); return -EINVAL; } Loading @@ -564,7 +583,7 @@ static ssize_t cec_wta_logical_addr(struct device *dev, struct cec_ops *ops; if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading @@ -578,7 +597,7 @@ static ssize_t cec_wta_logical_addr(struct device *dev, } if (logical_addr < 0 || logical_addr > 15) { pr_err("Invalid logical address\n"); pr_err("invalid logical address\n"); ret = -EINVAL; goto end; } Loading @@ -604,7 +623,7 @@ static ssize_t cec_rda_msg(struct device *dev, ssize_t ret; if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -660,7 +679,7 @@ static ssize_t cec_wta_msg(struct device *dev, struct cec_ctl *ctl = cec_get_ctl(dev); if (!ctl) { pr_err("Invalid ctl\n"); pr_err("invalid cec ctl\n"); ret = -EINVAL; goto end; } Loading Loading @@ -763,7 +782,7 @@ void *cec_abstract_init(struct cec_abstract_init_data *init_data) int ret = 0; if (!init_data) { pr_err("invalid input\n"); pr_err("invalid cec abstract init data\n"); ret = -EINVAL; goto end; } Loading
drivers/video/fbdev/msm/mdss_dba_utils.c +4 −4 Original line number Diff line number Diff line Loading @@ -298,7 +298,7 @@ static bool mdss_dba_check_audio_support(struct mdss_dba_utils_data *udata) { bool dvi_mode = false; int audio_blk_size = 0; struct msm_hdmi_audio_edid_blk audio_blk; struct msm_ext_disp_audio_edid_blk audio_blk; if (!udata) { pr_debug("%s: Invalid input\n", __func__); Loading @@ -307,7 +307,7 @@ static bool mdss_dba_check_audio_support(struct mdss_dba_utils_data *udata) memset(&audio_blk, 0, sizeof(audio_blk)); /* check if sink is in DVI mode */ dvi_mode = !hdmi_edid_get_sink_mode(udata->edid_data); dvi_mode = hdmi_edid_is_dvi_mode(udata->edid_data); /* get the audio block size info from EDID */ hdmi_edid_get_audio_blk(udata->edid_data, &audio_blk); Loading @@ -328,7 +328,7 @@ static void mdss_dba_utils_dba_cb(void *data, enum msm_dba_callback_event event) bool operands_present = false; u32 no_of_operands, size, i; u32 operands_offset = MAX_CEC_FRAME_SIZE - MAX_OPERAND_SIZE; struct msm_hdmi_audio_edid_blk blk; struct msm_ext_disp_audio_edid_blk blk; if (!udata) { pr_err("Invalid data\n"); Loading Loading @@ -578,7 +578,7 @@ int mdss_dba_utils_video_on(void *data, struct mdss_panel_info *pinfo) video_cfg.h_pulse_width = pinfo->lcdc.h_pulse_width; video_cfg.v_pulse_width = pinfo->lcdc.v_pulse_width; video_cfg.pclk_khz = (unsigned long)pinfo->clk_rate / 1000; video_cfg.hdmi_mode = hdmi_edid_get_sink_mode(ud->edid_data); video_cfg.hdmi_mode = !hdmi_edid_is_dvi_mode(ud->edid_data); /* Calculate number of DSI lanes configured */ video_cfg.num_of_input_lanes = 0; Loading