]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit227762c9c1a9d1d82865f246c7f5c125ec7072db
tree5d29a9e4720e14c6f9cc18a6c622d3ea14b75cc5
parent6b368a6275576bd8920643684e177d4944b6e566
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