diff options
Diffstat (limited to 'recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/fix-hdmi-preferred-mode.patch')
-rw-r--r-- | recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/fix-hdmi-preferred-mode.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/fix-hdmi-preferred-mode.patch b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/fix-hdmi-preferred-mode.patch new file mode 100644 index 0000000..2c2f564 --- /dev/null +++ b/recipes-graphics/xorg-driver/xf86-video-imxfb-vivante/fix-hdmi-preferred-mode.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Fix HDMI preferred mode choosing | ||
2 | |||
3 | This fixes the HDMI setting to use the preferred mode instead of the | ||
4 | lowest resolution by default. | ||
5 | |||
6 | Upstream-Status: Pending | ||
7 | |||
8 | Signed-off-by: Jon Nettleton <jon.nettleton@gmail.com> | ||
9 | Signed-off-by: Otavio Salvador <otavio@ossystems.com.br> | ||
10 | |||
11 | diff --git a/EXA/src/vivante_fbdev/imx_display.c b/EXA/src/vivante_fbdev/imx_display.c | ||
12 | index af6dcfc..cf49003 100644 | ||
13 | --- a/EXA/src/vivante_fbdev/imx_display.c | ||
14 | +++ b/EXA/src/vivante_fbdev/imx_display.c | ||
15 | @@ -879,6 +879,8 @@ imxDisplayGetModes(ScrnInfoPtr pScrn, const char* fbDeviceName) | ||
16 | (mode->HDisplay > 0) && | ||
17 | (mode->VDisplay > 0)) { | ||
18 | |||
19 | + mode->type = M_T_PREFERRED; | ||
20 | + | ||
21 | xf86PrintModeline(pScrn->scrnIndex, mode); | ||
22 | modesList = xf86ModesAdd(modesList, mode); | ||
23 | } | ||