Skip to content

Commit fc6aa9b

Browse files
spersvoldgregkh
authored andcommitted
fbdev: modedb: Fix misaligned fields in the 1920x1080-60 mode
commit d894c48 upstream. The 1920x1080@60 modedb entry has one too many initializers before its sync field: a stray "0" occupies the sync slot, which shifts the remaining values by one field. The entry therefore decodes as sync = 0, vmode = FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT (0x3, i.e. FB_VMODE_INTERLACED | FB_VMODE_DOUBLE), and flag = FB_VMODE_NONINTERLACED, instead of the intended sync = positive H/V, vmode = non-interlaced. fb_find_mode() then returns a 1920x1080 mode flagged as interlaced + doublescan with active-low syncs. Drivers that honour var->vmode and var->sync when programming display timing enable doublescan and the wrong sync polarity, corrupting the output. Drop the stray initializer so sync and vmode hold their intended values (positive H/V sync, non-interlaced), matching the adjacent 1920x1200 entry. Fixes: c890225 ("fbdev: modedb: Add 1920x1080 at 60 Hz video mode") Cc: stable@vger.kernel.org Signed-off-by: Steffen Persvold <spersvold@gmail.com> Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 4d418cf commit fc6aa9b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/video/fbdev/core/modedb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ static const struct fb_videomode modedb[] = {
259259
FB_VMODE_DOUBLE },
260260

261261
/* 1920x1080 @ 60 Hz, 67.3 kHz hsync */
262-
{ NULL, 60, 1920, 1080, 6734, 148, 88, 36, 4, 44, 5, 0,
262+
{ NULL, 60, 1920, 1080, 6734, 148, 88, 36, 4, 44, 5,
263263
FB_SYNC_HOR_HIGH_ACT | FB_SYNC_VERT_HIGH_ACT,
264264
FB_VMODE_NONINTERLACED },
265265

0 commit comments

Comments
 (0)