ALSA: firewire-lib: use circular linked list to enumerate packet descriptors
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 9 Jan 2023 02:17:36 +0000 (11:17 +0900)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Jan 2023 16:04:43 +0000 (17:04 +0100)
commitcec371ff1ab18ddd23ac483e7689d0819c09bf7b
treefbded6370be2c2b8963f62aef3c095e9aa027c9b
parentc38d8cff9cdc8101a2df7a55a86d45f279728873
ALSA: firewire-lib: use circular linked list to enumerate packet descriptors

Current implementation uses list of packet descriptor as template to
schedule isochronous packet. The packet descriptors are operated by
position and size, while circular linked list is convenient to enumerate
the packet descriptors.

This commit utilizes circular linked list for the purpose.

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