use video auto modes only if they enabled in neutrino

git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@728 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
focus
2010-08-19 12:47:18 +00:00
parent ab9fdf0eb9
commit 8c22be3153
8 changed files with 24 additions and 7 deletions

View File

@@ -204,6 +204,7 @@ void CFrameBuffer::setupGXA(void)
_write_gxa(gxa_base, GXA_BMP2_TYPE_REG, (3 << 16) | screeninfo.xres);
_write_gxa(gxa_base, GXA_BMP2_ADDR_REG, (unsigned int) fix.smem_start);
_write_gxa(gxa_base, GXA_BLEND_CFG_REG, 0x00089064);
// TODO check mono-flip, bit 8
_write_gxa(gxa_base, GXA_CFG_REG, 0x100 | (1 << 12) | (1 << 29));
_write_gxa(gxa_base, GXA_CFG2_REG, 0x1FF);
_write_gxa(gxa_base, GXA_BG_COLOR_REG, (unsigned int) backgroundColor);
@@ -228,7 +229,6 @@ void CFrameBuffer::init(const char * const fbDevice)
memcpy(&oldscreen, &screeninfo, sizeof(screeninfo));
//fb_fix_screeninfo fix;
if (ioctl(fd, FBIOGET_FSCREENINFO, &fix)<0) {
perror("FBIOGET_FSCREENINFO");
goto nolfb;