From aabe7bd5eac3bd7d467a57b9a8ef3b66d2b07556 Mon Sep 17 00:00:00 2001 From: Christian Gmeiner Date: Fri, 16 Oct 2009 13:14:45 +0200 Subject: simplify en/disabling of the spu unit --- dxr3interface.c | 25 ++----------------------- 1 file changed, 2 insertions(+), 23 deletions(-) (limited to 'dxr3interface.c') 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(); -- cgit v1.2.3