summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dxr3interface.c25
-rw-r--r--dxr3interface.h1
2 files changed, 2 insertions, 24 deletions
diff --git a/dxr3interface.c b/dxr3interface.c
index 16f151d..a0cd6e9 100644
--- a/dxr3interface.c
+++ b/dxr3interface.c
@@ -128,17 +128,7 @@ void cDxr3Interface::EnableSPU()
Lock();
- if (m_spuMode != ioval)
- {
- if (ioctl(m_fdControl, EM8300_IOCTL_SET_SPUMODE, &ioval) == -1)
- {
- esyslog("dxr3: unable to enable subpicture mode: %m");
- }
- else
- {
- m_spuMode = ioval;
- }
- }
+ CHECK(ioctl(m_fdControl, EM8300_IOCTL_SET_SPUMODE, &ioval));
Unlock();
}
@@ -151,17 +141,7 @@ void cDxr3Interface::DisableSPU()
Lock();
- if (m_spuMode != ioval)
- {
- if (ioctl(m_fdControl, EM8300_IOCTL_SET_SPUMODE, &ioval) == -1)
- {
- esyslog("dxr3: unable to disable subpicture mode: %m");
- }
- else
- {
- m_spuMode = ioval;
- }
- }
+ CHECK(ioctl(m_fdControl, EM8300_IOCTL_SET_SPUMODE, &ioval));
Unlock();
}
@@ -423,7 +403,6 @@ void cDxr3Interface::ClaimDevices()
m_horizontal = 720;
m_vertical = 576;
m_aspectRatio = UNKNOWN_ASPECT_RATIO;
- m_spuMode = EM8300_SPUMODE_OFF;
// configure device based on settings
ConfigureDevice();
diff --git a/dxr3interface.h b/dxr3interface.h
index 1c76d2a..d19f02a 100644
--- a/dxr3interface.h
+++ b/dxr3interface.h
@@ -151,7 +151,6 @@ private:
uint32_t m_aspectRatio; ///< current used aspect ratio
uint32_t m_horizontal; ///< horizontal size of current videostream
uint32_t m_vertical; ///< vertical size of current videostream
- uint32_t m_spuMode;
bool m_AudioActive; ///< is audio active?
bool m_VideoActive; ///< is video active?