diff options
-rw-r--r-- | HISTORY | 5 | ||||
-rw-r--r-- | dxr3interface.c | 11 |
2 files changed, 16 insertions, 0 deletions
@@ -349,3 +349,8 @@ NOTE: I havent found time to include all of the languages, will be done in pre2 brightness/contrast/saturation (Krzysztof Parma, Ville Skyttä) - Switch to VDR 1.6's i18n system (Ville Skyttä) - Drop support for VDR < 1.6.0 (Ville Skyttä) + +200x-xx-xx: Version x.x.x + +- Apply brightness/contrast/saturation configuration settings when configuring + the device, e.g. on VDR startup (Ville Skyttä) diff --git a/dxr3interface.c b/dxr3interface.c index 8c8a1d3..e4c74fa 100644 --- a/dxr3interface.c +++ b/dxr3interface.c @@ -1046,6 +1046,17 @@ void cDxr3Interface::ConfigureDevice() exit(1); } + // set brightness/contrast/saturation + m_bcs.brightness = cDxr3ConfigData::Instance().GetBrightness(); + m_bcs.contrast = cDxr3ConfigData::Instance().GetContrast(); + m_bcs.saturation = cDxr3ConfigData::Instance().GetSaturation(); + dsyslog("dxr3: configure: brightness=%d,contrast=%d,saturation=%d", + m_bcs.brightness, m_bcs.contrast, m_bcs.saturation); + if (ioctl(m_fdControl, EM8300_IOCTL_SETBCS, &m_bcs) < 0) + { + esyslog("dxr3: unable to set brightness/contrast/saturation: %m"); + } + ConfigureDeviceAudio(); } |