From 36ab0cef0b2bb34d094dd64d06c85e324b1dbb56 Mon Sep 17 00:00:00 2001 From: scop Date: Fri, 2 Jan 2009 22:37:34 +0000 Subject: Apply configured BCS when configuring the device. --- HISTORY | 5 +++++ dxr3interface.c | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/HISTORY b/HISTORY index 2ab8457..8fe5d29 100644 --- a/HISTORY +++ b/HISTORY @@ -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(); } -- cgit v1.2.3