ALSA: firewire-lib: code refactoring for helper functions to pool sequence in rx...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sat, 7 Jan 2023 02:32:11 +0000 (11:32 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sun, 8 Jan 2023 14:00:08 +0000 (15:00 +0100)
commit119c446a484a646a5762ff11ecff53c337f0e236
tree057e6a8bc3d80024394a97cbe645e644256c8a3c
parent777ad8835e43155101b6b8f09ea433ffbd1fc028
ALSA: firewire-lib: code refactoring for helper functions to pool sequence in rx packets

When scheduling transmission of rx packets, current implementation pools
sequence descriptors at first for media clock. Two methods are used for
the purpose depending on four cases, while the implementations do not
necessarily have good readability.

This commit refactors them by adding function pointers and functions
arguments.

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