summaryrefslogtreecommitdiff
path: root/sound/firewire/amdtp-stream.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2019-05-22 23:17:04 +0900
committerTakashi Iwai <tiwai@suse.de>2019-05-23 12:19:39 +0200
commit6f3c07d03c6bc84d2da6ce0e24e9a1feece42c47 (patch)
tree06c0b294ef92c96ca78af620c4cfd063680ae80e /sound/firewire/amdtp-stream.h
parent07ea238ca139aef1820802409a6a7bdd45e38caa (diff)
ALSA: firewire-lib: calculate the length of packet payload in packet handler
In current packet handler, the length of payload is given as an argument of callback function, however this value is just required to process payload of transferred isoc packet, thus just for IR context. This commit replaces the argument for payload of packet with the argument of context header. As a result, the length of payload is computed in packet handler for IR context. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire/amdtp-stream.h')
-rw-r--r--sound/firewire/amdtp-stream.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/sound/firewire/amdtp-stream.h b/sound/firewire/amdtp-stream.h
index 1945ef59ab92..d317fdc6ab5f 100644
--- a/sound/firewire/amdtp-stream.h
+++ b/sound/firewire/amdtp-stream.h
@@ -108,9 +108,8 @@ struct amdtp_stream {
struct iso_packets_buffer buffer;
int packet_index;
int tag;
- int (*handle_packet)(struct amdtp_stream *s,
- unsigned int payload_quadlets, unsigned int cycle,
- unsigned int index);
+ int (*handle_packet)(struct amdtp_stream *s, unsigned int cycle,
+ const __be32 *ctx_header, unsigned int index);
union {
struct {
unsigned int ctx_header_size;