diff options
author | scop <scop> | 2009-01-02 22:37:34 +0000 |
---|---|---|
committer | scop <scop> | 2009-01-02 22:37:34 +0000 |
commit | 36ab0cef0b2bb34d094dd64d06c85e324b1dbb56 (patch) | |
tree | 92acd2fac0f53e44730ada6af1367f2691b220b6 | |
parent | 0721c7c06800b221e7f599eede99dad32116f4eb (diff) | |
download | vdr-plugin-dxr3-36ab0cef0b2bb34d094dd64d06c85e324b1dbb56.tar.gz vdr-plugin-dxr3-36ab0cef0b2bb34d094dd64d06c85e324b1dbb56.tar.bz2 |
Apply configured BCS when configuring the device.
-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(); } |