neutrino: Add switch osd resolution when supported from hardware

- At the moment supported hardware: CS HD2

 Currently known problems:
 -------------------------
 - Display menus after changing resolution (Reboot required)
 - Display headers after changing resolution hd => fullhd (Reboot required)
 - Display infobar after changing resolution hd => fullhd (Reboot required)
 - Screenshot broken (With new driver and set resolution to 1280x720)


Origin commit data
------------------
Branch: ni/coolstream
Commit: 7b158903f8
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2017-02-13 (Mon, 13 Feb 2017)

Origin message was:
------------------
neutrino: Add switch osd resolution when supported from hardware

 - At the moment supported hardware: CS HD2

 Currently known problems:
 -------------------------
 - Display menus after changing resolution (Reboot required)
 - Display headers after changing resolution hd => fullhd (Reboot required)
 - Display infobar after changing resolution hd => fullhd (Reboot required)
 - Screenshot broken (With new driver and set resolution to 1280x720)


------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2017-02-13 12:49:37 +01:00
parent 346923a66b
commit 3903507312
15 changed files with 338 additions and 80 deletions

View File

@@ -325,9 +325,25 @@ void CFbAccelCSHD1::setupGXA()
add_gxa_sync_marker();
}
/* wrong name... */
void CFbAccelCSHD1::setOsdResolutions()
{
/* FIXME: Infos available in driver? */
osd_resolution_t res;
osd_resolutions.clear();
res.xRes = 1280;
res.yRes = 720;
res.bpp = 32;
osd_resolutions.push_back(res);
}
int CFbAccelCSHD1::setMode(unsigned int, unsigned int, unsigned int)
{
if (!available&&!active)
return -1;
if (osd_resolutions.empty())
setOsdResolutions();
fb_fix_screeninfo _fix;
if (ioctl(fd, FBIOGET_FSCREENINFO, &_fix) < 0) {