From d3ba40481f6b9193c9c9b1c8b92d4a87fad45cb9 Mon Sep 17 00:00:00 2001 From: Clemens Ladisch Date: Mon, 19 Mar 2012 22:07:46 +0100 Subject: [PATCH] Implement raw1394_iso_recv_flush() on Juju Signed-off-by: Clemens Ladisch Signed-off-by: Stefan Richter --- src/fw-iso.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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