summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Gmeiner <christian.gmeiner@gmail.com>2010-02-04 23:59:32 +0100
committerChristian Gmeiner <christian.gmeiner@gmail.com>2010-02-04 23:59:32 +0100
commit1878a15bee4edad1e575c7a2812a87277c3af364 (patch)
tree74a61021b7cc7b5dd633aea1189e2dd4ce49f4c9
parentc1e2186b6a3b14e4da3232c2c9d2a03c1fb9a1a2 (diff)
downloadvdr-plugin-dxr3-1878a15bee4edad1e575c7a2812a87277c3af364.tar.gz
vdr-plugin-dxr3-1878a15bee4edad1e575c7a2812a87277c3af364.tar.bz2
keep SetPlayMode very simple -> best a/v sync after channel switch
-rw-r--r--dxr3device.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/dxr3device.c b/dxr3device.c
index e183272..d9a12e3 100644
--- a/dxr3device.c
+++ b/dxr3device.c
@@ -110,14 +110,9 @@ bool cDxr3Device::SetPlayMode(ePlayMode PlayMode)
{
dsyslog("[dxr3-device] setting playmode %d", PlayMode);
- uint32_t ioval = EM8300_PLAYMODE_PAUSED;
-
switch (PlayMode) {
case pmNone:
audioOut->setEnabled(false);
- CHECK(ioctl(fdControl, EM8300_IOCTL_SET_PLAYMODE, &ioval));
- ioval = 0;
- CHECK(ioctl(fdControl, EM8300_IOCTL_SCR_SET, &ioval));
scrSet = false;
playCount = 0;
break;
@@ -507,13 +502,8 @@ void cDxr3Device::uploadFirmware()
void cDxr3Device::setPlayMode()
{
em8300_register_t reg;
- int ioval;
-
- ioval = EM8300_SUBDEVICE_AUDIO;
- ioctl(fdControl, EM8300_IOCTL_FLUSH, &ioval);
- fsync(fdVideo);
- ioval = EM8300_PLAYMODE_PLAY;
+ int ioval = EM8300_PLAYMODE_PLAY;
CHECK(ioctl(fdControl, EM8300_IOCTL_SET_PLAYMODE, &ioval));
reg.microcode_register = 1;
reg.reg = 0;