ALSA: firewire-lib: code refactoring for cache position in sequence replay
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 7 Jan 2023 02:32:14 +0000 (11:32 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 Jan 2023 14:00:11 +0000 (15:00 +0100)
commitc38d8cff9cdc8101a2df7a55a86d45f279728873
treef2c21044cd0b386cfa427a014d4530526f521e0f
parentcccddec49c58785ea6a5752ab749ca2d99488851
ALSA: firewire-lib: code refactoring for cache position in sequence replay

When sequence replay is enabled for media clock recovery, current
implementation refers to cache of sequence descriptors in tx packets, then
fulfil sequence descriptors for rx packets. The initialization for rx
packets is done before starting packet streaming, while it can be postponed
till the cache has enough entries for the replay.

This commit refactors for the purpose as well as minor code change for
renaming of structure member.

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