aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/fw-iso.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-03-14 17:34:54 -0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2007-03-15 13:21:36 -0400
commiteb0306eac0aad0b7da18d8fbfb777f155b2c010d (patch)
treeac0d1922362804b9687deb5bffb8179ac670149a /drivers/firewire/fw-iso.c
parentc70dc788fd8d3870b41231b6a53a64afb98cfd13 (diff)
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.c12
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,
107 107
108struct fw_iso_context * 108struct fw_iso_context *
109fw_iso_context_create(struct fw_card *card, int type, 109fw_iso_context_create(struct fw_card *card, int type,
110 int channel, int speed, 110 int channel, int speed, size_t header_size,
111 int sync, int tags, size_t header_size,
112 fw_iso_callback_t callback, void *callback_data) 111 fw_iso_callback_t callback, void *callback_data)
113{ 112{
114 struct fw_iso_context *ctx; 113 struct fw_iso_context *ctx;
115 114
116 ctx = card->driver->allocate_iso_context(card, type, 115 ctx = card->driver->allocate_iso_context(card, type, header_size);
117 sync, tags, header_size);
118 if (IS_ERR(ctx)) 116 if (IS_ERR(ctx))
119 return ctx; 117 return ctx;
120 118
@@ -122,8 +120,6 @@ fw_iso_context_create(struct fw_card *card, int type,
122 ctx->type = type; 120 ctx->type = type;
123 ctx->channel = channel; 121 ctx->channel = channel;
124 ctx->speed = speed; 122 ctx->speed = speed;
125 ctx->sync = sync;
126 ctx->tags = tags;
127 ctx->header_size = header_size; 123 ctx->header_size = header_size;
128 ctx->callback = callback; 124 ctx->callback = callback;
129 ctx->callback_data = callback_data; 125 ctx->callback_data = callback_data;
@@ -141,9 +137,9 @@ void fw_iso_context_destroy(struct fw_iso_context *ctx)
141EXPORT_SYMBOL(fw_iso_context_destroy); 137EXPORT_SYMBOL(fw_iso_context_destroy);
142 138
143int 139int
144fw_iso_context_start(struct fw_iso_context *ctx, int cycle) 140fw_iso_context_start(struct fw_iso_context *ctx, int cycle, int sync, int tags)
145{ 141{
146 return ctx->card->driver->start_iso(ctx, cycle); 142 return ctx->card->driver->start_iso(ctx, cycle, sync, tags);
147} 143}
148EXPORT_SYMBOL(fw_iso_context_start); 144EXPORT_SYMBOL(fw_iso_context_start);
149 145