diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2023-01-07 11:32:11 +0900 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-01-08 15:00:08 +0100 |
commit | 119c446a484a646a5762ff11ecff53c337f0e236 (patch) | |
tree | 057e6a8bc3d80024394a97cbe645e644256c8a3c /sound/firewire/amdtp-stream.h | |
parent | 777ad8835e43155101b6b8f09ea433ffbd1fc028 (diff) | |
download | lwn-119c446a484a646a5762ff11ecff53c337f0e236.tar.gz lwn-119c446a484a646a5762ff11ecff53c337f0e236.zip |
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>
Diffstat (limited to 'sound/firewire/amdtp-stream.h')
-rw-r--r-- | sound/firewire/amdtp-stream.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/firewire/amdtp-stream.h b/sound/firewire/amdtp-stream.h index 1f957c946c95..baab63d31ddd 100644 --- a/sound/firewire/amdtp-stream.h +++ b/sound/firewire/amdtp-stream.h @@ -159,7 +159,7 @@ struct amdtp_stream { struct { struct seq_desc *descs; unsigned int size; - unsigned int tail; + unsigned int pos; unsigned int head; } seq; |