diff options
Diffstat (limited to 'dxr3device.c')
-rw-r--r-- | dxr3device.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/dxr3device.c b/dxr3device.c index 02773bb..fc1c31a 100644 --- a/dxr3device.c +++ b/dxr3device.c @@ -182,8 +182,7 @@ void cDxr3Device::Clear() uint32_t ioval = EM8300_SUBDEVICE_VIDEO; CHECK(ioctl(fdControl, EM8300_IOCTL_FLUSH, &ioval)); - ioval = EM8300_SUBDEVICE_AUDIO; - CHECK(ioctl(fdControl, EM8300_IOCTL_FLUSH, &ioval)); + audioOut->flush(); cDevice::Clear(); } @@ -460,6 +459,12 @@ int cDxr3Device::ossSetPlayMode(uint32_t mode) return ioctl(fdControl, EM8300_IOCTL_SET_AUDIOMODE, &mode); } +int cDxr3Device::ossFlush() +{ + uint32_t ioval = EM8300_SUBDEVICE_AUDIO; + return ioctl(fdControl, EM8300_IOCTL_FLUSH, &ioval); +} + void cDxr3Device::settingsChange(SettingsChange change) { if (change == BCS) { |