summaryrefslogtreecommitdiff
path: root/dxr3device.c
diff options
context:
space:
mode:
Diffstat (limited to 'dxr3device.c')
-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();
}