summaryrefslogtreecommitdiffstats
path: root/drivers/video/via/dvi.h
diff options
context:
space:
mode:
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-08-07 01:51:41 +0000
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>2011-08-07 01:51:41 +0000
commitebb29fb47e198787b8b47a74cb10334cd9647a9d (patch)
tree25ab6ed861e7ada2f2c063d4e18b4e9bb2edcd9d /drivers/video/via/dvi.h
parent42edcb162d67e8a88c7b873941c19eab689db272 (diff)
downloadop-kernel-dev-ebb29fb47e198787b8b47a74cb10334cd9647a9d.zip
op-kernel-dev-ebb29fb47e198787b8b47a74cb10334cd9647a9d.tar.gz
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>
Diffstat (limited to 'drivers/video/via/dvi.h')
-rw-r--r--drivers/video/via/dvi.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/via/dvi.h b/drivers/video/via/dvi.h
index f473dd0..e2116aa 100644
--- a/drivers/video/via/dvi.h
+++ b/drivers/video/via/dvi.h
@@ -59,7 +59,6 @@ void viafb_dvi_enable(void);
bool __devinit viafb_tmds_trasmitter_identify(void);
void __devinit viafb_init_dvi_size(struct tmds_chip_information *tmds_chip,
struct tmds_setting_information *tmds_setting);
-void viafb_dvi_set_mode(struct VideoModeTable *videoMode, int mode_bpp,
- int set_iga);
+void viafb_dvi_set_mode(const struct fb_var_screeninfo *var, int iga);
#endif /* __DVI_H__ */
OpenPOWER on IntegriCloud