Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/cirrus: correct register values for 16bpp

When the mode is set with 16bpp on QEMU, the output gets totally broken.
The culprit is the bogus register values set for 16bpp, which was likely
copied from from a wrong place.

Addresses https://bugzilla.novell.com/show_bug.cgi?id=799216

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: David Airlie <airlied@linux.ie>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>

authored by

Takashi Iwai and committed by
Dave Airlie
2510538f d0ce7b85

+2 -2
+2 -2
drivers/gpu/drm/cirrus/cirrus_mode.c
··· 273 273 sr07 |= 0x11; 274 274 break; 275 275 case 16: 276 - sr07 |= 0xc1; 277 - hdr = 0xc0; 276 + sr07 |= 0x17; 277 + hdr = 0xc1; 278 278 break; 279 279 case 24: 280 280 sr07 |= 0x15;