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>
This commit is contained in:
Clemens Ladisch 2012-03-19 22:07:46 +01:00 committed by Stefan Richter
parent 39249705c0
commit d3ba40481f
1 changed files with 6 additions and 1 deletions

View File

@ -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