]> rtime.felk.cvut.cz Git - linux-imx.git/commit
viafb: use information in var for modesetting
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 7 Aug 2011 01:51:41 +0000 (01:51 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 7 Aug 2011 01:51:41 +0000 (01:51 +0000)
commitebb29fb47e198787b8b47a74cb10334cd9647a9d
tree25ab6ed861e7ada2f2c063d4e18b4e9bb2edcd9d
parent42edcb162d67e8a88c7b873941c19eab689db272
viafb: use information in var for modesetting

This patch starts to use the information in var for modesetting for
CRT and DVI devices. This is the right thing as it allows us to use
more generic modes than the ones predefined by VIA. We do not yet
allow more generic modes as check_var still limits them to the
predefined ones but with this patch applied it would be really easy
to do so. A problem was VIAs SAMM mode as it has 2 different modes
but just one frame buffer device. This is solved by creating a
pseudo var which contains enough information to use it for
modesetting. Hopefully one day we can use information in var for all
modes that do not involve hardware scaling.
Well I'd like to say that the chance of regressions is low but it is
quite likely that the behaviour in some cases changed especially
when SAMM is involved. I hope we made it better than before in
particular the DVI frequency check was probably broken before and
hopefully works better now.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/via/dvi.c
drivers/video/via/dvi.h
drivers/video/via/hw.c
drivers/video/via/hw.h