diff options
author | Clemens Ladisch <clemens@ladisch.de> | 2012-03-18 14:06:39 -0400 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2012-03-18 17:15:39 -0400 |
commit | d1bbd20972936b9b178fda3eb1ec417cb27fdc01 (patch) | |
tree | 5d2e29adbc6f0e8ad0dd07b7624e2ad07181303e /drivers/firewire/core-iso.c | |
parent | 18d627113b830cda80792e96b28341bcd41cf40c (diff) |
firewire: allow explicit flushing of iso packet completions
Extend the kernel and userspace APIs to allow reporting all currently
completed isochronous packets, even if the next interrupt packet has not
yet been reached. This is required to determine the status of the
packets at the end of a paused or stopped stream, and useful for more
precise synchronization of audio streams.
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/firewire/core-iso.c')
-rw-r--r-- | drivers/firewire/core-iso.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/firewire/core-iso.c b/drivers/firewire/core-iso.c index 57c3973093ad..2f432a20ce7e 100644 --- a/drivers/firewire/core-iso.c +++ b/drivers/firewire/core-iso.c | |||
@@ -191,6 +191,12 @@ void fw_iso_context_queue_flush(struct fw_iso_context *ctx) | |||
191 | } | 191 | } |
192 | EXPORT_SYMBOL(fw_iso_context_queue_flush); | 192 | EXPORT_SYMBOL(fw_iso_context_queue_flush); |
193 | 193 | ||
194 | int fw_iso_context_flush_completions(struct fw_iso_context *ctx) | ||
195 | { | ||
196 | return ctx->card->driver->flush_iso_completions(ctx); | ||
197 | } | ||
198 | EXPORT_SYMBOL(fw_iso_context_flush_completions); | ||
199 | |||
194 | int fw_iso_context_stop(struct fw_iso_context *ctx) | 200 | int fw_iso_context_stop(struct fw_iso_context *ctx) |
195 | { | 201 | { |
196 | return ctx->card->driver->stop_iso(ctx); | 202 | return ctx->card->driver->stop_iso(ctx); |