diff options
author | Kristian Høgsberg <krh@redhat.com> | 2007-02-16 17:34:50 -0500 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2007-03-09 16:03:03 -0500 |
commit | 21efb3cfc6ed49991638000f58bb23b838c76e25 (patch) | |
tree | 30b1b0ed02082b09fa844abf5888b4d3fbdadbe7 /drivers/firewire/fw-iso.c | |
parent | e364cf4e0aa245ba2ce5942289e8a43935505e53 (diff) |
firewire: Configure channel and speed at context creation time.
We need the channel number as we queue up iso packets for transmission
so we can fill out the header correctly.
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 | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/firewire/fw-iso.c b/drivers/firewire/fw-iso.c index deff6922a98f..dc5a7e3558ec 100644 --- a/drivers/firewire/fw-iso.c +++ b/drivers/firewire/fw-iso.c | |||
@@ -106,7 +106,8 @@ void fw_iso_buffer_destroy(struct fw_iso_buffer *buffer, | |||
106 | } | 106 | } |
107 | 107 | ||
108 | struct fw_iso_context * | 108 | struct fw_iso_context * |
109 | fw_iso_context_create(struct fw_card *card, int type, size_t header_size, | 109 | fw_iso_context_create(struct fw_card *card, int type, |
110 | int channel, int speed, size_t header_size, | ||
110 | fw_iso_callback_t callback, void *callback_data) | 111 | fw_iso_callback_t callback, void *callback_data) |
111 | { | 112 | { |
112 | struct fw_iso_context *ctx; | 113 | struct fw_iso_context *ctx; |
@@ -117,6 +118,8 @@ fw_iso_context_create(struct fw_card *card, int type, size_t header_size, | |||
117 | 118 | ||
118 | ctx->card = card; | 119 | ctx->card = card; |
119 | ctx->type = type; | 120 | ctx->type = type; |
121 | ctx->channel = channel; | ||
122 | ctx->speed = speed; | ||
120 | ctx->header_size = header_size; | 123 | ctx->header_size = header_size; |
121 | ctx->callback = callback; | 124 | ctx->callback = callback; |
122 | ctx->callback_data = callback_data; | 125 | ctx->callback_data = callback_data; |
@@ -134,12 +137,8 @@ void fw_iso_context_destroy(struct fw_iso_context *ctx) | |||
134 | EXPORT_SYMBOL(fw_iso_context_destroy); | 137 | EXPORT_SYMBOL(fw_iso_context_destroy); |
135 | 138 | ||
136 | int | 139 | int |
137 | fw_iso_context_start(struct fw_iso_context *ctx, | 140 | fw_iso_context_start(struct fw_iso_context *ctx, int cycle) |
138 | int channel, int speed, int cycle) | ||
139 | { | 141 | { |
140 | ctx->channel = channel; | ||
141 | ctx->speed = speed; | ||
142 | |||
143 | return ctx->card->driver->start_iso(ctx, cycle); | 142 | return ctx->card->driver->start_iso(ctx, cycle); |
144 | } | 143 | } |
145 | EXPORT_SYMBOL(fw_iso_context_start); | 144 | EXPORT_SYMBOL(fw_iso_context_start); |