ALSA: firewire-lib: code refactoring for syt offset calculation
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 8 May 2020 04:36:31 +0000 (13:36 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 8 May 2020 07:45:46 +0000 (09:45 +0200)
commit816d84826e89399858a1f086d78f5a4dd615a9ae
tree5d29a9e4720e14c6f9cc18a6c622d3ea14b75cc5
parent83cfb5c50f8e35d795d4260756fb62a2b77ae8df
ALSA: firewire-lib: code refactoring for syt offset calculation

When calculating syt offset, some states are stored in AMDTP stream
structure. This is inconvenient when reuse the calculation from
non-stream structure.

This commit applies refactoring to helper function for the calculation
so that the function doesn't touch AMDTP stream structure.

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