]> 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)
commit6b368a6275576bd8920643684e177d4944b6e566
tree16b9626842402e7e2e57cf8a2d11453b0f96158c
parent97f7de76777dc9fc60ada560e829d5477986bfe6
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