diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2012-03-19 22:07:46 +0100 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2012-03-19 22:52:41 +0100 |
commit | d3ba40481f6b9193c9c9b1c8b92d4a87fad45cb9 (patch) | |
tree | 43691dfe9ca98ee0607775af2c4537cad2e96758 | |
parent | 39249705c06f83491c3092ca486dbd76ccd6d7ed (diff) | |
download | libraw1394-d3ba40481f6b9193c9c9b1c8b92d4a87fad45cb9.tar.gz |
Implement raw1394_iso_recv_flush() on Juju
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
-rw-r--r-- | src/fw-iso.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/fw-iso.c b/src/fw-iso.c index d44a945..ea0a249 100644 --- a/src/fw-iso.c +++ b/src/fw-iso.c @@ -431,9 +431,14 @@ int fw_iso_xmit_sync(raw1394handle_t handle) int fw_iso_recv_flush(fw_handle_t handle) { - /* FIXME: huh, we'll need kernel support here... */ +#ifdef FW_CDEV_IOC_FLUSH_ISO /* added in kernel 3.4 */ + struct fw_cdev_flush_iso flush; + flush.handle = handle->iso.kernel_handle; + return ioctl(handle->iso.fd, FW_CDEV_IOC_FLUSH_ISO, &flush); +#else return 0; +#endif /* defined(FW_CDEV_IOC_FLUSH_ISO) */ } static unsigned int |