ALSA: firewire-lib: code refactoring for calculation of context payload
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Thu, 20 May 2021 04:01:48 +0000 (13:01 +0900)
committerTakashi Iwai <tiwai@suse.de>
Thu, 20 May 2021 11:59:43 +0000 (13:59 +0200)
commitc75f36789d3c668048ac757368c8b7b02e7cf953
treede30f2b18c35217d821652ad65ee72fddfbedb91
parent67d92ee7a50b007b87b113195e73da6ece6b231b
ALSA: firewire-lib: code refactoring for calculation of context payload

It's convenient to calculate the size of context payload apart from
the size of isochronous packet payload.

This commit adds a helper function for it.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://lore.kernel.org/r/20210520040154.80450-3-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/amdtp-stream.c