]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc518bac1d57f5c747099072c8e3296873555da06
tree16b9626842402e7e2e57cf8a2d11453b0f96158c
parent374a7e1f018a66346eeabf1e416e514a443e8f91
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