summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-06-29 16:25:18 +0200
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-06-29 16:25:18 +0200
commita9b09976c0dc86d75f5b9814b870cf99f7c3f23a (patch)
treeac6dbc8256e059a2d3a397022110abbf68698ae0
parent737597e6e821d739a087fc3dfb89aa2840ddc461 (diff)
downloadvdr-plugin-dxr3-a9b09976c0dc86d75f5b9814b870cf99f7c3f23a.tar.gz
vdr-plugin-dxr3-a9b09976c0dc86d75f5b9814b870cf99f7c3f23a.tar.bz2
improve cDxr3Device::Clear() by using scr hack
-rw-r--r--dxr3device.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/dxr3device.c b/dxr3device.c
index c116b74..0f623bd 100644
--- a/dxr3device.c
+++ b/dxr3device.c
@@ -173,12 +173,16 @@ void cDxr3Device::TrickSpeed(int Speed)
void cDxr3Device::Clear()
{
dsyslog("[dxr3-device] clear");
+ uint32_t val = 0;
- uint32_t ioval = EM8300_SUBDEVICE_VIDEO;
- CHECK(ioctl(fdControl, EM8300_IOCTL_FLUSH, &ioval));
+ // here we use some magic
+ // set the scr into future so that the firmware/hardware
+ // clears the buffers.
+ CHECK(ioctl(fdControl, EM8300_IOCTL_SCR_GET, &val));
+ val += TIMESTAMPS_500MS * 4;
+ CHECK(ioctl(fdControl, EM8300_IOCTL_SCR_SET, &val));
audioOut->flush();
-
cDevice::Clear();
}