Loading drivers/video/msm/mdss/mdss_hdmi_tx.c +5 −2 Original line number Diff line number Diff line Loading @@ -198,6 +198,7 @@ static void hdmi_tx_hpd_off(struct hdmi_tx_ctrl *hdmi_ctrl); static int hdmi_tx_enable_power(struct hdmi_tx_ctrl *hdmi_ctrl, enum hdmi_tx_power_module_type module, int enable); static int hdmi_tx_audio_setup(struct hdmi_tx_ctrl *hdmi_ctrl); static int hdmi_tx_setup_tmds_clk_rate(struct hdmi_tx_ctrl *hdmi_ctrl); static struct mdss_hw hdmi_tx_hw = { .hw_ndx = MDSS_HW_HDMI, Loading Loading @@ -2605,6 +2606,7 @@ static int hdmi_tx_audio_acr_setup(struct hdmi_tx_ctrl *hdmi_ctrl, /* Read first before writing */ u32 acr_pck_ctrl_reg; u32 sample_rate; u32 pixel_freq; struct dss_io_data *io = NULL; if (!hdmi_ctrl) { Loading Loading @@ -2636,15 +2638,16 @@ static int hdmi_tx_audio_acr_setup(struct hdmi_tx_ctrl *hdmi_ctrl, __func__, hdmi_ctrl->vid_cfg.vic); return -EPERM; } pixel_freq = hdmi_tx_setup_tmds_clk_rate(hdmi_ctrl); for (i = 0; i < lut_size; audio_acr = &hdmi_tx_audio_acr_lut[++i]) { if (audio_acr->pclk == timing->pixel_freq) if (audio_acr->pclk == pixel_freq) break; } if (i >= lut_size) { DEV_WARN("%s: pixel clk %d not supported\n", __func__, timing->pixel_freq); pixel_freq); return -EPERM; } Loading Loading
drivers/video/msm/mdss/mdss_hdmi_tx.c +5 −2 Original line number Diff line number Diff line Loading @@ -198,6 +198,7 @@ static void hdmi_tx_hpd_off(struct hdmi_tx_ctrl *hdmi_ctrl); static int hdmi_tx_enable_power(struct hdmi_tx_ctrl *hdmi_ctrl, enum hdmi_tx_power_module_type module, int enable); static int hdmi_tx_audio_setup(struct hdmi_tx_ctrl *hdmi_ctrl); static int hdmi_tx_setup_tmds_clk_rate(struct hdmi_tx_ctrl *hdmi_ctrl); static struct mdss_hw hdmi_tx_hw = { .hw_ndx = MDSS_HW_HDMI, Loading Loading @@ -2605,6 +2606,7 @@ static int hdmi_tx_audio_acr_setup(struct hdmi_tx_ctrl *hdmi_ctrl, /* Read first before writing */ u32 acr_pck_ctrl_reg; u32 sample_rate; u32 pixel_freq; struct dss_io_data *io = NULL; if (!hdmi_ctrl) { Loading Loading @@ -2636,15 +2638,16 @@ static int hdmi_tx_audio_acr_setup(struct hdmi_tx_ctrl *hdmi_ctrl, __func__, hdmi_ctrl->vid_cfg.vic); return -EPERM; } pixel_freq = hdmi_tx_setup_tmds_clk_rate(hdmi_ctrl); for (i = 0; i < lut_size; audio_acr = &hdmi_tx_audio_acr_lut[++i]) { if (audio_acr->pclk == timing->pixel_freq) if (audio_acr->pclk == pixel_freq) break; } if (i >= lut_size) { DEV_WARN("%s: pixel clk %d not supported\n", __func__, timing->pixel_freq); pixel_freq); return -EPERM; } Loading