aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/firewire/amdtp-stream.h
diff options
context:
space:
mode:
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>2019-05-22 23:17:05 +0900
committerTakashi Iwai <tiwai@suse.de>2019-05-23 12:19:40 +0200
commit8a400b999678996af6ca9434376b2260ec2ea9eb (patch)
tree30dbef54f153064593d5d42f51d7eec80c5c5252 /sound/firewire/amdtp-stream.h
parentALSA: firewire-lib: calculate the length of packet payload in packet handler (diff)
downloadwireguard-linux-8a400b999678996af6ca9434376b2260ec2ea9eb.tar.xz
wireguard-linux-8a400b999678996af6ca9434376b2260ec2ea9eb.zip
ALSA: firewire-lib: compute pointer to payload buffer in context handler
The value of pointer to payload buffer is computed in each packet handler, however the pointer can be decided before call of packet handler. This commit adds an argument for the pointer to the packet handler to reduce codes to compute for the pointer. 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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/firewire/amdtp-stream.h b/sound/firewire/amdtp-stream.h
index d317fdc6ab5f..5aa9683593d2 100644
--- a/sound/firewire/amdtp-stream.h
+++ b/sound/firewire/amdtp-stream.h
@@ -109,7 +109,8 @@ struct amdtp_stream {
int packet_index;
int tag;
int (*handle_packet)(struct amdtp_stream *s, unsigned int cycle,
- const __be32 *ctx_header, unsigned int index);
+ const __be32 *ctx_header, __be32 *buffer,
+ unsigned int index);
union {
struct {
unsigned int ctx_header_size;