diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-03-15 00:34:54 +0300 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-03-15 20:21:36 +0300 |
commit | eb0306eac0aad0b7da18d8fbfb777f155b2c010d (patch) | |
tree | ac0d1922362804b9687deb5bffb8179ac670149a /drivers/firewire/fw-iso.c | |
parent | c70dc788fd8d3870b41231b6a53a64afb98cfd13 (diff) | |
download | linux-eb0306eac0aad0b7da18d8fbfb777f155b2c010d.tar.xz |
firewire: Move sync and tag parameters to start_iso ioctl.
Setting these at create_context time or start_iso time doesn't matter
much, but raw1394 sets them at start_iso time so that will be easier to
emulate this way.
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-iso.c')
-rw-r--r-- | drivers/firewire/fw-iso.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/firewire/fw-iso.c b/drivers/firewire/fw-iso.c index 3eaf88005c5d..2ce26db656e0 100644 --- a/drivers/firewire/fw-iso.c +++ b/drivers/firewire/fw-iso.c @@ -107,14 +107,12 @@ void fw_iso_buffer_destroy(struct fw_iso_buffer *buffer, struct fw_iso_context * fw_iso_context_create(struct fw_card *card, int type, - int channel, int speed, - int sync, int tags, size_t header_size, + int channel, int speed, size_t header_size, fw_iso_callback_t callback, void *callback_data) { struct fw_iso_context *ctx; - ctx = card->driver->allocate_iso_context(card, type, - sync, tags, header_size); + ctx = card->driver->allocate_iso_context(card, type, header_size); if (IS_ERR(ctx)) return ctx; @@ -122,8 +120,6 @@ fw_iso_context_create(struct fw_card *card, int type, ctx->type = type; ctx->channel = channel; ctx->speed = speed; - ctx->sync = sync; - ctx->tags = tags; ctx->header_size = header_size; ctx->callback = callback; ctx->callback_data = callback_data; @@ -141,9 +137,9 @@ void fw_iso_context_destroy(struct fw_iso_context *ctx) EXPORT_SYMBOL(fw_iso_context_destroy); int -fw_iso_context_start(struct fw_iso_context *ctx, int cycle) +fw_iso_context_start(struct fw_iso_context *ctx, int cycle, int sync, int tags) { - return ctx->card->driver->start_iso(ctx, cycle); + return ctx->card->driver->start_iso(ctx, cycle, sync, tags); } EXPORT_SYMBOL(fw_iso_context_start); |