ALSA: firewire-lib: code refactoring for syt computation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 8 May 2020 04:36:30 +0000 (13:36 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 8 May 2020 07:45:31 +0000 (09:45 +0200)
commit83cfb5c50f8e35d795d4260756fb62a2b77ae8df
tree16b9626842402e7e2e57cf8a2d11453b0f96158c
parentaf86b0b1f4b04501fdd12571ffcaae5853ab8a10
ALSA: firewire-lib: code refactoring for syt computation

In current implementation for outgoing AMDTP packet, the value of syt
field in CIP header is computed when calculating syt offset. For
future extension, it's convenient to split the computation and
calculation.

This commit splits them.

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