ALSA: firewire-lib: compute pointer to payload buffer in context handler
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Wed, 22 May 2019 14:17:05 +0000 (23:17 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 23 May 2019 10:19:40 +0000 (12:19 +0200)
commit8a400b999678996af6ca9434376b2260ec2ea9eb
tree30dbef54f153064593d5d42f51d7eec80c5c5252
parent6f3c07d03c6bc84d2da6ce0e24e9a1feece42c47
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>
sound/firewire/amdtp-stream.c
sound/firewire/amdtp-stream.h