summaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-device-cdev.c
diff options
context:
space:
mode:
authorKristian Høgsberg2007-02-16 23:34:42 +0100
committerStefan Richter2007-03-09 22:02:59 +0100
commitb82956685aab4a9d333714300eb8a86fed6c9ab3 (patch)
treedec07ca99cb70714ec1bb3e5c53314a7a5573e73 /drivers/firewire/fw-device-cdev.c
parentfirewire: Rename 'send_iso' to 'start_iso'. (diff)
downloadkernel-qcow2-linux-b82956685aab4a9d333714300eb8a86fed6c9ab3.tar.gz
kernel-qcow2-linux-b82956685aab4a9d333714300eb8a86fed6c9ab3.tar.xz
kernel-qcow2-linux-b82956685aab4a9d333714300eb8a86fed6c9ab3.zip
firewire: Implement functionality to stop isochronous DMA contexts.
Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/fw-device-cdev.c')
-rw-r--r--drivers/firewire/fw-device-cdev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/firewire/fw-device-cdev.c b/drivers/firewire/fw-device-cdev.c
index b738c997ef39..1ce33d4f91a3 100644
--- a/drivers/firewire/fw-device-cdev.c
+++ b/drivers/firewire/fw-device-cdev.c
@@ -514,6 +514,11 @@ static int ioctl_start_iso(struct client *client, void __user *arg)
request.speed, request.cycle);
}
+static int ioctl_stop_iso(struct client *client, void __user *arg)
+{
+ return fw_iso_context_stop(client->iso_context);
+}
+
static int
dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg)
{
@@ -532,6 +537,8 @@ dispatch_ioctl(struct client *client, unsigned int cmd, void __user *arg)
return ioctl_queue_iso(client, arg);
case FW_CDEV_IOC_START_ISO:
return ioctl_start_iso(client, arg);
+ case FW_CDEV_IOC_STOP_ISO:
+ return ioctl_stop_iso(client, arg);
default:
return -EINVAL;
}