diff options
| author | Zohaib Alam <zalam@codeaurora.org> | 2014-01-20 14:36:27 -0500 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-23 20:25:42 -0700 |
| commit | 09434235837bc9db0112fd39689cfefbdbfa5214 (patch) | |
| tree | 43580369b967f1fe56c87b72ea0fe2102b96d267 /drivers | |
| parent | 02234a7be40960485f1c7047048a086e423b5b37 (diff) | |
msm: mdss: hdmi: Default resolution for hdmi primary
Set 1080p60 as default resolution when HDMI is the primary
display.
Change-Id: Ia88b0f4e1a7c1635598685a206b99517b8763a54
Signed-off-by: Zohaib Alam <zalam@codeaurora.org>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/video/fbdev/msm/mdss_hdmi_tx.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/video/fbdev/msm/mdss_hdmi_tx.c b/drivers/video/fbdev/msm/mdss_hdmi_tx.c index ca16e083d1de..5cb9a8c7ba26 100644 --- a/drivers/video/fbdev/msm/mdss_hdmi_tx.c +++ b/drivers/video/fbdev/msm/mdss_hdmi_tx.c @@ -39,6 +39,7 @@ #define COMPATIBLE_NAME "qcom,hdmi-tx" #define DEFAULT_VIDEO_RESOLUTION HDMI_VFRMT_640x480p60_4_3 +#define DEFAULT_HDMI_PRIMARY_RESOLUTION HDMI_VFRMT_1920x1080p60_16_9 /* HDMI PHY/PLL bit field macros */ #define SW_RESET BIT(2) @@ -3263,7 +3264,12 @@ static int hdmi_tx_register_panel(struct hdmi_tx_ctrl *hdmi_ctrl) hdmi_ctrl->panel_data.event_handler = hdmi_tx_panel_event_handler; - hdmi_ctrl->video_resolution = DEFAULT_VIDEO_RESOLUTION; + /* Default 1080p resolution for hdmi primary display */ + if (hdmi_ctrl->pdata.primary) + hdmi_ctrl->video_resolution = DEFAULT_HDMI_PRIMARY_RESOLUTION; + else + hdmi_ctrl->video_resolution = DEFAULT_VIDEO_RESOLUTION; + rc = hdmi_tx_init_panel_info(hdmi_ctrl->video_resolution, &hdmi_ctrl->panel_data.panel_info); if (rc) { |
